Skip to content

Instantly share code, notes, and snippets.

@eungju
Created November 8, 2013 04:35
Show Gist options
  • Save eungju/7366318 to your computer and use it in GitHub Desktop.
Save eungju/7366318 to your computer and use it in GitHub Desktop.
A patch for kyotocabinet.
diff -ru kyotocabinet-1.2.76/kccommon.h kyotocabinet-1.2.76-mavericks/kccommon.h
--- kyotocabinet-1.2.76/kccommon.h 2012-05-25 01:27:59.000000000 +0900
+++ kyotocabinet-1.2.76-mavericks/kccommon.h 2013-11-08 13:22:57.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(_LIBCPP_VERSION)
#include <unordered_map>
#include <unordered_set>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment