gentoo-overlay/media-libs/opencollada/files/opencollada-1.6.18-clang.patch

12 lines
769 B
Diff

diff -uri OpenCOLLADA-1.6.18.orig/COLLADABaseUtils/include/COLLADABUhash_map.h OpenCOLLADA-1.6.18/COLLADABaseUtils/include/COLLADABUhash_map.h
--- OpenCOLLADA-1.6.18.orig/COLLADABaseUtils/include/COLLADABUhash_map.h 2016-05-09 10:57:11.000000000 -0500
+++ OpenCOLLADA-1.6.18/COLLADABaseUtils/include/COLLADABUhash_map.h 2016-07-08 18:56:45.000000000 -0500
@@ -70,7 +70,7 @@
#define COLLADABU_HASH_NAMESPACE_CLOSE
#define COLLADABU_HASH_FUN hash
#else // Linux or Mac or FreeBSD with GCC
- #if __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 3)
+ #if !defined(__clang__) && (__GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 3))
#include <ext/hash_map>
#include <ext/hash_set>
#if !(defined(__APPLE__) && defined(__MACH__))