freebsd-ports/graphics/Hermes/files/patch-src-HeadMMX.h
Sergey Matveychuk 12372ed189 - Fix build with gcc 4.x
PR:		ports/115647 (based on)
Submitted by:	Oliver Brandmueller <ob@e-gitt.net>
2007-08-30 15:57:05 +00:00

11 lines
321 B
C

--- src/HeadMMX.h.orig Thu Aug 30 19:26:59 2007
+++ src/HeadMMX.h Thu Aug 30 19:27:59 2007
@@ -51,7 +51,7 @@
/* Fix the underscore business with ELF compilers */
-#if defined(__ELF__) && defined(__GNUC__)
+#if defined(__ELF__) && defined(__GNUC__) && __GNUC__ < 4
#ifdef __cplusplus
extern "C" {
#endif