summaryrefslogtreecommitdiff
path: root/devel/allegro/patches
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2011-08-20 15:28:09 +0000
committerjoerg <joerg@pkgsrc.org>2011-08-20 15:28:09 +0000
commitc75dc34a8e66839051a83925c59f40f238cb7db8 (patch)
treeab2831778c2e335abc52292ae9619861320a356c /devel/allegro/patches
parente0df43795d64dfc14d46a26513b100ffac217d99 (diff)
downloadpkgsrc-c75dc34a8e66839051a83925c59f40f238cb7db8.tar.gz
Deal with C99 vs GNU89 inline semantic
Diffstat (limited to 'devel/allegro/patches')
-rw-r--r--devel/allegro/patches/patch-include-allegro-internal-alconfig.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/devel/allegro/patches/patch-include-allegro-internal-alconfig.h b/devel/allegro/patches/patch-include-allegro-internal-alconfig.h
new file mode 100644
index 00000000000..5ffd39b49ba
--- /dev/null
+++ b/devel/allegro/patches/patch-include-allegro-internal-alconfig.h
@@ -0,0 +1,13 @@
+$NetBSD: patch-include-allegro-internal-alconfig.h,v 1.1 2011/08/20 15:28:09 joerg Exp $
+
+--- include/allegro/internal/alconfig.h.orig 2011-08-19 14:59:33.000000000 +0000
++++ include/allegro/internal/alconfig.h
+@@ -73,7 +73,7 @@
+ #define ALLEGRO_GCC
+
+ #ifndef AL_INLINE
+- #ifdef __cplusplus
++ #if defined(__cplusplus) || (defined(__GNUC_STDC_INLINE__) && __GNUC_STDC_INLINE__)
+ #define AL_INLINE(type, name, args, code) \
+ static inline type name args; \
+ static inline type name args code