Permalink
Browse files
- fix windows build on <vc10
- Loading branch information...
Showing
with
16 additions
and
4 deletions.
-
+6
−1
src/hash.h
-
+5
−1
src/rfc1321/global.h
-
+5
−2
win32/inttypes.h
|
@@ -18,7 +18,12 @@ |
|
|
#ifndef LIBVBUCKET_HASH_H
|
|
|
#define LIBVBUCKET_HASH_H 1
|
|
|
|
|
|
-#include <stdint.h>
|
|
|
+#ifndef HAVE_STDINT_h
|
|
|
+# include "win_stdint.h"
|
|
|
+#else
|
|
|
+# include <stdint.h>
|
|
|
+#endif
|
|
|
+
|
|
|
#include <sys/types.h>
|
|
|
#include <stdio.h>
|
|
|
|
|
|
|
@@ -10,7 +10,11 @@ |
|
|
#define PROTOTYPES 0
|
|
|
#endif
|
|
|
|
|
|
-#include <stdint.h>
|
|
|
+#ifndef HAVE_STDINT_h
|
|
|
+# include "win_stdint.h"
|
|
|
+#else
|
|
|
+# include <stdint.h>
|
|
|
+#endif
|
|
|
|
|
|
/* POINTER defines a generic pointer type */
|
|
|
typedef unsigned char *POINTER;
|
|
|
|
@@ -3,7 +3,10 @@ |
|
|
*/
|
|
|
#ifndef INTTYPES_H
|
|
|
#define INTTYPES_H
|
|
|
-
|
|
|
-#include <stdint.h>
|
|
|
+#ifndef HAVE_STDINT_h
|
|
|
+# include "win_stdint.h"
|
|
|
+#else
|
|
|
+# include <stdint.h>
|
|
|
+#endif
|
|
|
|
|
|
#endif
|
0 comments on commit
d54a8d1