| Revision 3015,
1010 bytes
checked in by chris, 8 months ago
(diff) |
|
Split Win32 defines out of emu.h to enable Boxi to include them before
wx/wx.h (to set UNICODE properly) without also #including winnt.h before
UNICODE is set properly.
|
-
Property svn:eol-style set to
native
|
| Line | |
|---|
| 1 | #ifndef _EMU_WINVER_H |
|---|
| 2 | #define _EMU_WINVER_H |
|---|
| 3 | |
|---|
| 4 | // set up to include the necessary parts of Windows headers |
|---|
| 5 | |
|---|
| 6 | #define WIN32_LEAN_AND_MEAN |
|---|
| 7 | |
|---|
| 8 | #ifndef __MSVCRT_VERSION__ |
|---|
| 9 | #define __MSVCRT_VERSION__ 0x0601 |
|---|
| 10 | #endif |
|---|
| 11 | |
|---|
| 12 | // We need WINVER at least 0x0500 to use GetFileSizeEx on Cygwin/MinGW, |
|---|
| 13 | // and 0x0501 for FindFirstFile(W) for opendir/readdir. |
|---|
| 14 | // |
|---|
| 15 | // WIN32_WINNT versions 0x0600 (Vista) and higher enable WSAPoll() in |
|---|
| 16 | // winsock2.h, whose struct pollfd conflicts with ours below, so for |
|---|
| 17 | // now we just set it lower than that, to Windows XP (0x0501). |
|---|
| 18 | |
|---|
| 19 | #ifdef WINVER |
|---|
| 20 | # if WINVER != 0x0501 |
|---|
| 21 | // provoke a redefinition warning to track down the offender |
|---|
| 22 | # define WINVER 0x0501 |
|---|
| 23 | # error Must include emu.h before setting WINVER |
|---|
| 24 | # endif |
|---|
| 25 | #endif |
|---|
| 26 | #define WINVER 0x0501 |
|---|
| 27 | |
|---|
| 28 | #ifdef _WIN32_WINNT |
|---|
| 29 | # if _WIN32_WINNT != 0x0501 |
|---|
| 30 | // provoke a redefinition warning to track down the offender |
|---|
| 31 | # define _WIN32_WINNT 0x0501 |
|---|
| 32 | # error Must include emu.h before setting _WIN32_WINNT |
|---|
| 33 | # endif |
|---|
| 34 | #endif |
|---|
| 35 | #define _WIN32_WINNT 0x0501 |
|---|
| 36 | |
|---|
| 37 | #endif // _EMU_WINVER_H |
|---|
Note: See
TracBrowser
for help on using the repository browser.