summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
Diffstat (limited to 'ext')
-rw-r--r--ext/compressors/snappy/snappy_compress.c7
-rw-r--r--ext/compressors/zlib/zlib_compress.c9
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;