aboutsummaryrefslogtreecommitdiffstats
path: root/OpenAL32/Include/alMain.h
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2013-10-07 07:44:09 -0700
committerChris Robinson <[email protected]>2013-10-07 07:44:09 -0700
commit1518895e15262deade1b03e29b47a3d149f73c83 (patch)
tree0c3399a3edd858efd10c154753cdedb9fde128c0 /OpenAL32/Include/alMain.h
parent44172f701c0842fc1a31bfa93b617b361a6d3618 (diff)
Use an UNUSED macro instead of void-tagging unused parameters
Diffstat (limited to 'OpenAL32/Include/alMain.h')
-rw-r--r--OpenAL32/Include/alMain.h16
1 files changed, 13 insertions, 3 deletions
diff --git a/OpenAL32/Include/alMain.h b/OpenAL32/Include/alMain.h
index 10426138..cfe30f47 100644
--- a/OpenAL32/Include/alMain.h
+++ b/OpenAL32/Include/alMain.h
@@ -52,14 +52,24 @@ typedef ptrdiff_t ALintptrEXT;
typedef ptrdiff_t ALsizeiptrEXT;
#ifndef U64
-#if !defined(_MSC_VER)
-#if SIZEOF_LONG_LONG == 8
+#if defined(_MSC_VER)
+#define U64(x) ((ALuint64)(x##ui64))
+#elif SIZEOF_LONG_LONG == 8
#define U64(x) ((ALuint64)(x##ull))
#elif SIZEOF_LONG == 8
#define U64(x) ((ALuint64)(x##ul))
#endif
+#endif
+
+#ifndef UNUSED
+#if defined(__cplusplus)
+#define UNUSED(x)
+#elif defined(__GNUC__)
+#define UNUSED(x) UNUSED_##x __attribute__((unused))
+#elif defined(__LCLINT__)
+#define UNUSED(x) /*@unused@*/ x
#else
-#define U64(x) ((ALuint64)(x##ui64))
+#define UNUSED(x) x
#endif
#endif