freebsd-ports/graphics/imlib2/files/patch-src_lib_common.h
Stanislav Sedov 2b8acb7b5c - Update imlib2 and imlib2_loaders to 1.4.4. This version mainly contains
bugfixes compared to 1.4.1 with some new functions added.
  I'm also dropping .la files, so port revisions of dependent library
  ports have been bumped accordingly.
2010-12-15 04:10:53 +00:00

19 lines
498 B
C

--- src/lib/common.h.orig 2010-12-14 19:39:16.000000000 -0800
+++ src/lib/common.h 2010-12-14 19:39:34.000000000 -0800
@@ -16,10 +16,12 @@
#include <sys/types.h>
#endif
-#if defined(__GNUC__) && (__GNUC__ >= 4)
-#define __hidden __attribute__((visibility("hidden")))
-#else
-#define __hidden
+#ifndef __hidden
+# if defined(__GNUC__) && (__GNUC__ >= 4)
+# define __hidden __attribute__((visibility("hidden")))
+# else
+# define __hidden
+# endif
#endif
#define DATABIG unsigned long long