projects
/
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 3ea4af099ba9fb3f47516eb1ba75ead562c52a69..1e15a4b91cd109c3ef92557cbe4c15197407ee89 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