diff options
author | 2009-03-19 06:15:14 +0000 | |
---|---|---|
committer | 2009-03-19 06:15:14 +0000 | |
commit | 58d832602b06c8d4587562160714531443fd54e4 (patch) | |
tree | 8d9ec0dbb0ac9aea339d7476353a258a1e93aee9 /src/emu/eigccx86.h | |
parent | 5caef9210c376d563b9fa8b47a81f68b0afc6f3a (diff) |
Having decided to look at the MAME source again, I have a fairly minor patch:
* Fix build of ldplayer on OS X. Since the CUSTOM sound module no longer exists, I
arbitrarily changed it to WAVE, as ar gets upset if it has no input files. I also
removed the -all_load flag for ldplayer from the main makefile as it upsets the linker
on OS X.
* Fix build for PPC64 Linux. (This slightly messes up static branch prediction hints
on OS X and AIX, but OS X for PPC64 is dead, and no- one builds MAME for AIX, and
it will still build, anyway.)
* Paramaterise the arguments to check for NULL in the ATTR_NONNULL macro rather than
just checking the first argument. This requires compiler support for C99 variadic
macros (MSVC2005 and GCC4 have this AFAIK).
Vas
Diffstat (limited to 'src/emu/eigccx86.h')
-rw-r--r-- | src/emu/eigccx86.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/emu/eigccx86.h b/src/emu/eigccx86.h index a84a16f2202..4be2f3ee474 100644 --- a/src/emu/eigccx86.h +++ b/src/emu/eigccx86.h @@ -504,7 +504,7 @@ _count_leading_ones(UINT32 value) -------------------------------------------------*/ #define compare_exchange32 _compare_exchange32 -INLINE INT32 ATTR_NONNULL ATTR_FORCE_INLINE +INLINE INT32 ATTR_NONNULL(1) ATTR_FORCE_INLINE _compare_exchange32(INT32 volatile *ptr, INT32 compare, INT32 exchange) { register INT32 result; @@ -531,7 +531,7 @@ _compare_exchange32(INT32 volatile *ptr, INT32 compare, INT32 exchange) #ifdef __x86_64__ #define compare_exchange64 _compare_exchange64 -INLINE INT64 ATTR_NONNULL ATTR_FORCE_INLINE +INLINE INT64 ATTR_NONNULL(1) ATTR_FORCE_INLINE _compare_exchange64(INT64 volatile *ptr, INT64 compare, INT64 exchange) { register INT64 result; @@ -557,7 +557,7 @@ _compare_exchange64(INT64 volatile *ptr, INT64 compare, INT64 exchange) -------------------------------------------------*/ #define atomic_exchange32 _atomic_exchange32 -INLINE INT32 ATTR_NONNULL ATTR_FORCE_INLINE +INLINE INT32 ATTR_NONNULL(1) ATTR_FORCE_INLINE _atomic_exchange32(INT32 volatile *ptr, INT32 exchange) { register INT32 result; @@ -580,7 +580,7 @@ _atomic_exchange32(INT32 volatile *ptr, INT32 exchange) -------------------------------------------------*/ #define atomic_add32 _atomic_add32 -INLINE INT32 ATTR_NONNULL ATTR_FORCE_INLINE +INLINE INT32 ATTR_NONNULL(1) ATTR_FORCE_INLINE _atomic_add32(INT32 volatile *ptr, INT32 delta) { register INT32 result = delta; @@ -604,7 +604,7 @@ _atomic_add32(INT32 volatile *ptr, INT32 delta) -------------------------------------------------*/ #define atomic_increment32 _atomic_increment32 -INLINE INT32 ATTR_NONNULL ATTR_FORCE_INLINE +INLINE INT32 ATTR_NONNULL(1) ATTR_FORCE_INLINE _atomic_increment32(INT32 volatile *ptr) { register INT32 result = 1; @@ -628,7 +628,7 @@ _atomic_increment32(INT32 volatile *ptr) -------------------------------------------------*/ #define atomic_decrement32 _atomic_decrement32 -INLINE INT32 ATTR_NONNULL ATTR_FORCE_INLINE +INLINE INT32 ATTR_NONNULL(1) ATTR_FORCE_INLINE _atomic_decrement32(INT32 volatile *ptr) { register INT32 result = -1; |