ITS#8067 add ssize_t typedef for MSVC

mdb.RE/0.9
Pavel Medvedev 9 years ago committed by Hallvard Furuseth
parent de5b689308
commit 22958b0f9e
  1. 6
      libraries/liblmdb/mdb.c

@ -96,7 +96,13 @@ extern int cacheflush(char *addr, int nbytes, int cache);
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include <time.h> #include <time.h>
#ifdef _MSC_VER
#include <io.h>
typedef SSIZE_T ssize_t;
#else
#include <unistd.h> #include <unistd.h>
#endif
#if defined(__sun) || defined(ANDROID) #if defined(__sun) || defined(ANDROID)
/* Most platforms have posix_memalign, older may only have memalign */ /* Most platforms have posix_memalign, older may only have memalign */

Loading…
Cancel
Save