/*
 * Copyright (C) 2008-2010, Gostai S.A.S.
 *
 * This software is provided "as is" without warranty of any kind,
 * either expressed or implied, including but not limited to the
 * implied warranties of fitness for a particular purpose.
 *
 * See the LICENSE file for more information.
 */

#ifndef LIBPORT_DETECT_WIN32_H
# define LIBPORT_DETECT_WIN32_H

# ifndef WIN32
#  if defined LIBPORT_WIN32 || defined _MSC_VER
#   define WIN32
#  endif
# endif


# ifdef WIN32

// Normalize to 1
#  undef WIN32
#  define WIN32 1

#  ifndef _WIN32_WINNT
#   define _WIN32_WINNT 0x0400
#  endif

# endif /* !WIN32 */


# ifdef WIN32
#  define WIN32_IF(Then, Else) Then
#  define EXEEXT ".exe"
# else
#  define WIN32_IF(Then, Else) Else
#  define EXEEXT ""
# endif

#endif // !LIBPORT_DETECT_WIN32_H

/*
 * Copyright (C) 2008-2011, Gostai S.A.S.
 *
 * This software is provided "as is" without warranty of any kind,
 * either expressed or implied, including but not limited to the
 * implied warranties of fitness for a particular purpose.
 *
 * See the LICENSE file for more information.
 */

#ifndef LIBPORT_DETECT_WIN32_H
# define LIBPORT_DETECT_WIN32_H

# ifndef WIN32
#  if defined LIBPORT_WIN32 || defined _MSC_VER
#   define WIN32
#  endif
# endif


# ifdef WIN32

// Normalize to 1
#  undef WIN32
#  define WIN32 1

#  ifndef _WIN32_WINNT

// Boost 1.47 uses InitializeCriticalSectionAndSpinCount which is
// defined starting at 0x403
// (http://msdn.microsoft.com/en-us/library/windows/desktop/ms683476(v=vs.85).aspx).

#   define _WIN32_WINNT 0x0403
#  endif

# endif /* !WIN32 */


# ifdef WIN32
#  define WIN32_IF(Then, Else) Then
#  define EXEEXT ".exe"
# else
#  define WIN32_IF(Then, Else) Else
#  define EXEEXT ""
# endif

#endif // !LIBPORT_DETECT_WIN32_H

Boost 1.47 on Windows: require _WIN32_WINNT 0x0403.
Boost 1.47 on Windows: require _WIN32_WINNT 0x0403.

	* include/libport/detect-win32.h: here.
