Skip to content

Commit

Permalink
A Small Compatibility Fix for 32-Bit MinGW
Browse files Browse the repository at this point in the history
  • Loading branch information
ghostlander committed May 1, 2016
1 parent 5903e15 commit f64eb0d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/leveldb/Makefile.mingw
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,6 @@ obj/version_set.o:
obj/write_batch.o:
$(CXX) $(CXXFLAGS) -c db/write_batch.cc -o $@ $<

obj/write_batch.o:
$(CXX) $(CXXFLAGS) -c db/write_batch.cc -o $@ $<

obj/port_win.o:
$(CXX) $(CXXFLAGS) -c port/port_win.cc -o $@ $<

Expand Down
8 changes: 8 additions & 0 deletions src/leveldb/helpers/memenv/memenv.cc
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,19 @@
#include "leveldb/status.h"
#include "port/port.h"
#include "util/mutexlock.h"
#include <stdint.h>
#include <map>
#include <string.h>
#include <string>
#include <vector>

#if defined(__MINGW32__) && !defined(__MINGW64__)
/* Should be declared in stdint.h */
#ifndef SIZE_MAX
#define SIZE_MAX 0xffffffffffffffffULL /* 18446744073709551615ULL */
#endif
#endif

namespace leveldb {

namespace {
Expand Down

0 comments on commit f64eb0d

Please sign in to comment.