summaryrefslogtreecommitdiffstatshomepage
path: root/src/osd/osdcomm.h
diff options
context:
space:
mode:
author Aaron Giles <aaron@aarongiles.com>2009-03-19 06:15:14 +0000
committer Aaron Giles <aaron@aarongiles.com>2009-03-19 06:15:14 +0000
commit58d832602b06c8d4587562160714531443fd54e4 (patch)
tree8d9ec0dbb0ac9aea339d7476353a258a1e93aee9 /src/osd/osdcomm.h
parent5caef9210c376d563b9fa8b47a81f68b0afc6f3a (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/osd/osdcomm.h')
-rw-r--r--src/osd/osdcomm.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/osd/osdcomm.h b/src/osd/osdcomm.h
index f446a4d6ffc..82566a73f2d 100644
--- a/src/osd/osdcomm.h
+++ b/src/osd/osdcomm.h
@@ -49,7 +49,7 @@
#define ATTR_PURE __attribute__((pure))
#define ATTR_CONST __attribute__((const))
#define ATTR_FORCE_INLINE __attribute__((always_inline))
-#define ATTR_NONNULL __attribute__((nonnull(1)))
+#define ATTR_NONNULL(...) __attribute__((nonnull(__VA_ARGS__)))
#define UNEXPECTED(exp) __builtin_expect((exp), 0)
#define RESTRICT __restrict__
#define SETJMP_GNUC_PROTECT() (void)__builtin_return_address(1)
@@ -64,7 +64,7 @@
#define ATTR_PURE
#define ATTR_CONST
#define ATTR_FORCE_INLINE
-#define ATTR_NONNULL
+#define ATTR_NONNULL(...)
#define UNEXPECTED(exp) (exp)
#define RESTRICT
#define SETJMP_GNUC_PROTECT() do {} while (0)