Add a new constant to avoid including <windows.h> on Linux

This commit is contained in:
Francis ANDRE 2017-03-23 17:14:57 +01:00
parent fcbb557a44
commit 42ae8f60b8
3 changed files with 7 additions and 4 deletions

View File

@ -80,16 +80,15 @@
#endif
#endif
#if !defined(POCO_NO_WINDOWS_H)
#include <windows.h>
#endif
// To prevent Platform_WIN32.h to modify version defines,
// uncomment this, otherwise versions will be automatically
// discovered in Platform_WIN32.h.
// #define POCO_FORCE_MIN_WINDOWS_OS_SUPPORT
#include <windows.h>
#if !defined(POCO_NO_UNWINDOWS)
// A list of annoying macros to #undef.
// Extend as required.

View File

@ -49,10 +49,12 @@
${Includes},
-I/usr/local/mysql/include,
-I/usr/include/mysql,
-I/usr/include/postgresql,
-D_DEBUG,
-E,
-C,
-DPOCO_NO_GCC_API_ATTRIBUTE
-DPOCO_NO_WINDOWS_H
</options>
<path></path>
<usePipe>true</usePipe>

View File

@ -46,10 +46,12 @@
${Includes},
-I/usr/local/mysql/include,
-I/usr/include/mysql,
-I/usr/include/postgresql,
-D_DEBUG,
-E,
-C,
-DPOCO_NO_GCC_API_ATTRIBUTE
-DPOCO_NO_WINDOWS_H
</options>
<path></path>
<usePipe>true</usePipe>