diff options
author | Mark Benvenuto <mark.benvenuto@mongodb.com> | 2014-10-08 19:46:48 -0400 |
---|---|---|
committer | Mark Benvenuto <mark.benvenuto@mongodb.com> | 2014-10-08 20:11:26 -0400 |
commit | d20905d154cdfa4c519231ab0860a86442b6ce71 (patch) | |
tree | 39ca2dbe5334d0f903e55558870672c29b92127f /ext | |
parent | b253daad8208deea209fb203e80a7bbe4098849f (diff) | |
download | mongo-d20905d154cdfa4c519231ab0860a86442b6ce71.tar.gz |
Initial Windows Port
Diffstat (limited to 'ext')
-rw-r--r-- | ext/compressors/snappy/snappy_compress.c | 7 | ||||
-rw-r--r-- | ext/compressors/zlib/zlib_compress.c | 9 |
2 files changed, 15 insertions, 1 deletions
diff --git a/ext/compressors/snappy/snappy_compress.c b/ext/compressors/snappy/snappy_compress.c index bece436d6e4..018c7b5da6e 100644 --- a/ext/compressors/snappy/snappy_compress.c +++ b/ext/compressors/snappy/snappy_compress.c @@ -37,7 +37,14 @@ * We need to include the configuration file to detect whether this extension * is being built into the WiredTiger library. */ +#ifndef _WIN32 #include "wiredtiger_config.h" +#else +#include "os_win_wiredtiger_config.h" +#ifdef _MSC_VER +#define inline __inline +#endif +#endif /* Local compressor structure. */ typedef struct { diff --git a/ext/compressors/zlib/zlib_compress.c b/ext/compressors/zlib/zlib_compress.c index 3532ecf16cd..0f33023b166 100644 --- a/ext/compressors/zlib/zlib_compress.c +++ b/ext/compressors/zlib/zlib_compress.c @@ -38,7 +38,14 @@ * We need to include the configuration file to detect whether this extension * is being built into the WiredTiger library. */ +#ifndef _WIN32 #include "wiredtiger_config.h" +#else +#include "os_win_wiredtiger_config.h" +#ifdef _MSC_VER +#define inline __inline +#endif +#endif /* Local compressor structure. */ typedef struct { @@ -80,7 +87,7 @@ zlib_error( * Allocate a scratch buffer. */ static void * -zalloc(void *cookie, u_int number, u_int size) +zalloc(void *cookie, uint32_t number, uint32_t size) { ZLIB_OPAQUE *opaque; WT_EXTENSION_API *wt_api; |