Skip to contentSkip to conversation

[4674] Fix always_inline definition for Darwin, by Andreas Faerber.

Qemu-devel Thiemo Seufer 1 participant 1 message Jun 5, 2008

lore
Share & tools
lore
#0 lore raw

Revision: 4674

          http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=4674
Author:   ths
Date:     2008-06-05 22:55:54 +0000 (Thu, 05 Jun 2008)

Log Message:
-----------
Fix always_inline definition for Darwin, by Andreas Faerber.

Modified Paths:
--------------
trunk/host-utils.h
trunk/osdep.h

Modified: trunk/host-utils.h
===================================================================

host-utils.h +2 -0
@@ -23,6 +23,8 @@
  * THE SOFTWARE.
  */
 
+#include "osdep.h"
+
 #if defined(__x86_64__)
 #define __HAVE_FAST_MULU64__
 static always_inline void mulu64 (uint64_t *plow, uint64_t *phigh,

Modified: trunk/osdep.h
===================================================================

osdep.h +3 -1
@@ -35,9 +35,11 @@
 #define always_inline inline
 #else
 #define always_inline __attribute__ (( always_inline )) __inline__
+#define inline always_inline
 #endif
+#else
+#define inline always_inline
 #endif
-#define inline always_inline
 
 #ifdef __i386__
 #define REGPARM __attribute((regparm(3)))