opnsense-ports/textproc/srilm/files/patch-dstruct-src-Array.h
Franco Fichtner 8cb1a96ede ports: pull in a snapshot of the FreeBSD ports tree
Taken from:	https://github.com/freebsd/freebsd-ports.git
Commit id:	5070672073b68be364139bc6b3a89100bd17d331
2014-11-09 14:03:21 +01:00

11 lines
591 B
C

--- dstruct/src/Array.h.orig 2014-09-02 15:48:38.000000000 +0400
+++ dstruct/src/Array.h 2014-09-02 15:48:57.000000000 +0400
@@ -89,7 +89,7 @@ public:
* gcc and icc allow this as part of the language, but many other C++ compilers
* don't (Sun Studio, MS Visual C).
*/
-#if !defined(DEBUG) && defined(__GNUC__) && (!defined(__INTEL_COMPILER) || __INTEL_COMPILER >=900)
+#if !defined(DEBUG) && !defined(__clang__) && defined(__GNUC__) && (!defined(__INTEL_COMPILER) || __INTEL_COMPILER >=900)
# define makeArray(T, A, n) T A[n]
#else
# define makeArray(T, A, n) StaticArray<T> A(n)