Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

… windows version to Windows XP
  • Loading branch information...
commit 8631b5c7d71772051a559cd3b042bc2c831ffd78 1 parent aee0034
Radim Kolar hsn10 authored
Showing with 6 additions and 4 deletions.
  1. +6 −4 leveldbjni/src/main/native-package/src/leveldbjni.h
10 leveldbjni/src/main/native-package/src/leveldbjni.h
View
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.