Permalink
Browse files

Include windows.h if windows OS is detected and define minimum target…

… windows version to Windows XP
  • Loading branch information...
1 parent aee0034 commit 8631b5c7d71772051a559cd3b042bc2c831ffd78 @hsn10 hsn10 committed Feb 5, 2013
Showing with 6 additions and 4 deletions.
  1. +6 −4 leveldbjni/src/main/native-package/src/leveldbjni.h
@@ -35,13 +35,15 @@
#ifdef HAVE_CONFIG_H
/* configure based build.. we will use what it discovered about the platform */
#include "config.h"
-#else
- #if defined(_WIN32) || defined(_WIN64)
+#endif
+#if defined(_WIN32) || defined(_WIN64)
/* Windows based build */
+ #define _WIN32_WINNT 0x0501
+ #include <windows.h>
+#endif
+#if !defined(HAVE_CONFIG_H) && (defined(_WIN32) || defined(_WIN64))
#define HAVE_STDLIB_H 1
#define HAVE_STRINGS_H 1
- #include <windows.h>
- #endif
#endif
#ifdef HAVE_UNISTD_H

0 comments on commit 8631b5c

Please sign in to comment.