projects
/
sdk
/
emulator
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0ed8b6f
)
Avoid redefining inline
author
Blue Swirl
<blauwirbel@gmail.com>
Sun, 8 Jul 2012 07:00:50 +0000
(07:00 +0000)
committer
Blue Swirl
<blauwirbel@gmail.com>
Sat, 28 Jul 2012 09:23:20 +0000
(09:23 +0000)
System headers (e.g. gutils.h) may define 'inline', #undefine it
before #defining.
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
osdep.h
patch
|
blob
|
history
diff --git
a/osdep.h
b/osdep.h
index
3ea4af0
..
1e15a4b
100644
(file)
--- a/
osdep.h
+++ b/
osdep.h
@@
-70,10
+70,12
@@
typedef signed int int_fast16_t;
#ifndef always_inline
#if !((__GNUC__ < 3) || defined(__APPLE__))
#ifdef __OPTIMIZE__
+#undef inline
#define inline __attribute__ (( always_inline )) __inline__
#endif
#endif
#else
+#undef inline
#define inline always_inline
#endif