mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-26 10:32:56 +01:00
Add a new constant to avoid including <windows.h> on Linux
This commit is contained in:
@@ -80,16 +80,15 @@
|
|||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if !defined(POCO_NO_WINDOWS_H)
|
||||||
|
#include <windows.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
// To prevent Platform_WIN32.h to modify version defines,
|
// To prevent Platform_WIN32.h to modify version defines,
|
||||||
// uncomment this, otherwise versions will be automatically
|
// uncomment this, otherwise versions will be automatically
|
||||||
// discovered in Platform_WIN32.h.
|
// discovered in Platform_WIN32.h.
|
||||||
// #define POCO_FORCE_MIN_WINDOWS_OS_SUPPORT
|
// #define POCO_FORCE_MIN_WINDOWS_OS_SUPPORT
|
||||||
|
|
||||||
|
|
||||||
#include <windows.h>
|
|
||||||
|
|
||||||
|
|
||||||
#if !defined(POCO_NO_UNWINDOWS)
|
#if !defined(POCO_NO_UNWINDOWS)
|
||||||
// A list of annoying macros to #undef.
|
// A list of annoying macros to #undef.
|
||||||
// Extend as required.
|
// Extend as required.
|
||||||
|
|||||||
@@ -49,10 +49,12 @@
|
|||||||
${Includes},
|
${Includes},
|
||||||
-I/usr/local/mysql/include,
|
-I/usr/local/mysql/include,
|
||||||
-I/usr/include/mysql,
|
-I/usr/include/mysql,
|
||||||
|
-I/usr/include/postgresql,
|
||||||
-D_DEBUG,
|
-D_DEBUG,
|
||||||
-E,
|
-E,
|
||||||
-C,
|
-C,
|
||||||
-DPOCO_NO_GCC_API_ATTRIBUTE
|
-DPOCO_NO_GCC_API_ATTRIBUTE
|
||||||
|
-DPOCO_NO_WINDOWS_H
|
||||||
</options>
|
</options>
|
||||||
<path></path>
|
<path></path>
|
||||||
<usePipe>true</usePipe>
|
<usePipe>true</usePipe>
|
||||||
|
|||||||
@@ -46,10 +46,12 @@
|
|||||||
${Includes},
|
${Includes},
|
||||||
-I/usr/local/mysql/include,
|
-I/usr/local/mysql/include,
|
||||||
-I/usr/include/mysql,
|
-I/usr/include/mysql,
|
||||||
|
-I/usr/include/postgresql,
|
||||||
-D_DEBUG,
|
-D_DEBUG,
|
||||||
-E,
|
-E,
|
||||||
-C,
|
-C,
|
||||||
-DPOCO_NO_GCC_API_ATTRIBUTE
|
-DPOCO_NO_GCC_API_ATTRIBUTE
|
||||||
|
-DPOCO_NO_WINDOWS_H
|
||||||
</options>
|
</options>
|
||||||
<path></path>
|
<path></path>
|
||||||
<usePipe>true</usePipe>
|
<usePipe>true</usePipe>
|
||||||
|
|||||||
Reference in New Issue
Block a user