[Groonga-commit] groonga/groonga [master] define WINVER only if it isn't defined. (amd64-mingw32msvc)

Back to archive index

null+****@clear***** null+****@clear*****
2011年 1月 5日 (水) 23:40:36 JST


Kouhei Sutou	2011-01-05 14:40:36 +0000 (Wed, 05 Jan 2011)

  New Revision: ba9df76717634d7a72aebce0cd9ef3ca7b4b32a8

  Log:
    define WINVER only if it isn't defined. (amd64-mingw32msvc)

  Modified files:
    lib/groonga_in.h

  Modified: lib/groonga_in.h (+2 -2)
===================================================================
--- lib/groonga_in.h    2011-01-05 07:56:00 +0000 (a1892d6)
+++ lib/groonga_in.h    2011-01-05 14:40:36 +0000 (7d8edce)
@@ -85,10 +85,10 @@
 
 #ifdef WIN32
 
-#ifdef __GNUC__
+#if defined(__GNUC__) && !defined(WINVER)
 #  include <w32api.h>
 #  define WINVER WindowsXP
-#endif
+#endif /* defined(__GNUC__) && !defined(WINVER) */
 
 #include <basetsd.h>
 #include <process.h>




Groonga-commit メーリングリストの案内
Back to archive index