42 lines
875 B
C++
42 lines
875 B
C++
/**
|
|
* @file include/ActivMiddleware/Config/Platforms/Windows.h
|
|
*
|
|
* @brief Microsoft Windows configuration file.
|
|
*/
|
|
|
|
#if (!defined ACTIV_CONFIG_PLATFORMS_WINDOWS_H)
|
|
#define ACTIV_CONFIG_PLATFORMS_WINDOWS_H
|
|
|
|
#if (ACTIV_PLATFORM_WINDOWS == 64)
|
|
#define ACTIV_PLATFORM_NAME "Win64"
|
|
#else
|
|
#define ACTIV_PLATFORM_NAME "Win32"
|
|
#endif
|
|
|
|
#define ACTIV_PLATFORM_TYPE Activ::PLATFORM_TYPE_WINDOWS
|
|
|
|
#if (!defined _WIN32_WINNT)
|
|
#define _WIN32_WINNT 0x600
|
|
#endif
|
|
|
|
// Prevent definition of max and min macros in windef.h. Must be defined before windows.h is included.
|
|
#if (!defined NOMINMAX)
|
|
#define NOMINMAX
|
|
#endif
|
|
|
|
#include <winsock2.h>
|
|
#include <ws2tcpip.h>
|
|
#include <windows.h>
|
|
|
|
#define ACTIV_WAIT_INFINITE INFINITE
|
|
|
|
namespace Activ
|
|
{
|
|
|
|
typedef unsigned short sa_family_t;
|
|
typedef int SocketBufferLength;
|
|
|
|
} // namespace Activ
|
|
|
|
#endif // (!defined ACTIV_CONFIG_PLATFORMS_WINDOWS_H)
|