Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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