diff options
Diffstat (limited to 'src/leveldb/port/port_win.h')
-rw-r--r-- | src/leveldb/port/port_win.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/leveldb/port/port_win.h b/src/leveldb/port/port_win.h index 849b01705f..45bf2f0ea7 100644 --- a/src/leveldb/port/port_win.h +++ b/src/leveldb/port/port_win.h @@ -31,9 +31,11 @@ #ifndef STORAGE_LEVELDB_PORT_PORT_WIN_H_ #define STORAGE_LEVELDB_PORT_PORT_WIN_H_ +#ifdef _MSC_VER #define snprintf _snprintf #define close _close #define fread_unlocked _fread_nolock +#endif #include <string> #include <stdint.h> @@ -120,7 +122,7 @@ class AtomicPointer { private: void * rep_; public: - AtomicPointer() : rep_(nullptr) { } + AtomicPointer() : rep_(NULL) { } explicit AtomicPointer(void* v); void* Acquire_Load() const; |