HomePhabricator

Port leveldb to MinGW32
b1024662eafdUnpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

Port leveldb to MinGW32

Several changes to make the native windows leveldb code compile
with mingw32 and run on 32-bit Windows:

  • Remove -std=c++0x dependency (modified code to use NULL instead of nullptr)
  • Link with -lshlwapi
  • Only #define snprintf/etc if compiling with Visual Studio
  • Do not link against DbgHelp.lib (wrote a CreateDir instead of using DbgHelp's MakeSureDirectoryPathExists
  • Define WINVER=0x0500 so MinGW32 can use the 64-bit-filesystem Windows api calls
  • Define __USE_MINGW_ANSI_STDIO=1 to use MinGW's printf (which supports %ll)

I also cleaned up makefile.mingw, assuming that dependencies would be in
the standard /usr/local/{include,lib} by default but allowing overriding
with make DEPSDIR=... etc

Details

Provenance
Gavin Andresen <gavinandresen@gmail.com>Authored on Dec 21 2012, 19:41
schancelPushed on Jan 5 2018, 21:58
schancelPushed on Jan 5 2018, 21:39
schancelPushed on Jan 5 2018, 21:17
Parents
rSTAGING8aef119f43ee: Mingw support for Windows LevelDB port
Branches
Unknown
Tags
Unknown

Event Timeline

Gavin Andresen <gavinandresen@gmail.com> committed rSTAGINGb1024662eafd: Port leveldb to MinGW32 (authored by Gavin Andresen <gavinandresen@gmail.com>).Jan 23 2013, 15:42