aboutsummaryrefslogtreecommitdiffstats
path: root/pugl
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2020-03-09 09:54:43 +0100
committerDavid Robillard <d@drobilla.net>2020-03-09 09:54:43 +0100
commitb7fef4609c3c07e7a117740affa9a7df10b6415d (patch)
tree229356559d9ca48f3cfdc5f7e8800478820004f2 /pugl
parent72eed1c426bb1e3b40ee34df0a82b5f37582bbb5 (diff)
downloadpugl-b7fef4609c3c07e7a117740affa9a7df10b6415d.tar.gz
pugl-b7fef4609c3c07e7a117740affa9a7df10b6415d.tar.bz2
pugl-b7fef4609c3c07e7a117740affa9a7df10b6415d.zip
Fix build with unknown C compilers
Diffstat (limited to 'pugl')
-rw-r--r--pugl/detail/types.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/pugl/detail/types.h b/pugl/detail/types.h
index d229848..dc0cce0 100644
--- a/pugl/detail/types.h
+++ b/pugl/detail/types.h
@@ -28,12 +28,12 @@
#include <stdint.h>
// Unused parameter macro to suppresses warnings and make it impossible to use
-#if defined(__cplusplus) || defined(_MSC_VER)
+#if defined(__cplusplus)
# define PUGL_UNUSED(name)
#elif defined(__GNUC__)
# define PUGL_UNUSED(name) name##_unused __attribute__((__unused__))
#else
-# define PUGL_UNUSED(name)
+# define PUGL_UNUSED(name) name
#endif
/** Platform-specific world internals. */