| 1 | #pragma once |
| 2 | |
| 3 | /************************************************************************************************** |
| 4 | Windows version |
| 5 | **************************************************************************************************/ |
| 6 | #ifdef PLATFORM_WINDOWS_XP |
| 7 | #undef WINVER |
| 8 | #undef _WIN32_WINNT |
| 9 | |
| 10 | #define WINVER 0x0501 |
| 11 | #define _WIN32_WINNT 0x0501 |
| 12 | #else |
| 13 | #if !defined(WINVER) && !defined(_WIN32_WINNT) |
| 14 | #define WINVER 0x0600 |
| 15 | #define _WIN32_WINNT 0x0600 |
| 16 | #elif !defined(WINVER) |
| 17 | #define WINVER _WIN32_WINNT |
| 18 | #elif !defined(_WIN32_WINNT) |
| 19 | #define _WIN32_WINNT WINVER |
| 20 | #endif |
| 21 | #endif |
| 22 | |
| 23 | /************************************************************************************************** |
| 24 | Unicode |
| 25 | **************************************************************************************************/ |
| 26 | #ifndef UNICODE |
| 27 | #define UNICODE |
| 28 | #endif |
| 29 | #ifndef _UNICODE |
| 30 | #define _UNICODE |
| 31 | #endif |
| 32 | |
| 33 | /************************************************************************************************** |
| 34 | Visual Studio defines |
| 35 | **************************************************************************************************/ |
| 36 | #define _AFX_NO_MFC_CONTROLS_IN_DIALOGS |