Skip to content

Instantly share code, notes, and snippets.

@informationsea
Created September 14, 2014 15:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save informationsea/fd62daafc40cc4d7dcc4 to your computer and use it in GitHub Desktop.
Save informationsea/fd62daafc40cc4d7dcc4 to your computer and use it in GitHub Desktop.
Kyoto Cabinet / OS X and clang support patch
diff -r -u kyotocabinet-1.2.76-original/kccommon.h kyotocabinet-1.2.76-mac/kccommon.h
--- kyotocabinet-1.2.76-original/kccommon.h 2012-05-25 01:27:59.000000000 +0900
+++ kyotocabinet-1.2.76-mac/kccommon.h 2014-09-15 00:01:22.000000000 +0900
@@ -82,7 +82,7 @@
using ::snprintf;
}
-#if __cplusplus > 199711L || defined(__GXX_EXPERIMENTAL_CXX0X__) || defined(_MSC_VER)
+#if __cplusplus > 199711L || defined(__GXX_EXPERIMENTAL_CXX0X__) || defined(_MSC_VER) || defined(__clang__)
#include <unordered_map>
#include <unordered_set>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment