Fix WIN redefinition warnings with GCC 4.6.1

This commit is contained in:
Barry Harris 2011-12-08 20:36:29 +00:00
parent 719e95e3e7
commit dfd8e1553d
1 changed files with 8 additions and 0 deletions

View File

@ -1,3 +1,11 @@
#ifdef __GNUC__
// silence warnings with GCC 4.6.1
#undef _WIN32_WINDOWS
#undef _WIN32_IE
#undef _WIN32_WINNT
#undef WINVER
#endif
#define _WIN32_WINDOWS 0x0410
//#define _WIN32_WINNT 0x0400
#define _WIN32_IE 0x0500