summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authorSimon Robertshaw <simon@hardwired.org.uk>2011-12-30 15:07:26 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2011-12-30 15:07:26 (GMT)
commit83387b45c054aa797ae8522a1062fca2d91d0615 (patch)
treefed8ecbeb013779aa318a20720bbddb827a2b380 /includes
parentb617a264f2ba51f864ba7bada165a2f092e11743 (diff)
downloadpowder-83387b45c054aa797ae8522a1062fca2d91d0615.zip
powder-83387b45c054aa797ae8522a1062fca2d91d0615.tar.gz
int64_t on for 64bit systems
Diffstat (limited to 'includes')
-rw-r--r--includes/BSON.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/includes/BSON.h b/includes/BSON.h
index f322255..159ebcd 100644
--- a/includes/BSON.h
+++ b/includes/BSON.h
@@ -28,8 +28,14 @@
#include <stdarg.h>
#include "defines.h"
+#if defined(LIN64) || defined(USE_STDINT)
+#include <sys\types.h>
+#include <stdint.h>
+#else
typedef long long int int64_t;
typedef unsigned long long int uint64_t;
+#endif
+
#define BSON_OK 0
#define BSON_ERROR -1