blob: 5ffd39b49ba1484f3289aa48276b0415bc80dbfc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
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
|