diff options
author | David Robillard <d@drobilla.net> | 2020-03-09 09:54:43 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-03-09 09:54:43 +0100 |
commit | b7fef4609c3c07e7a117740affa9a7df10b6415d (patch) | |
tree | 229356559d9ca48f3cfdc5f7e8800478820004f2 | |
parent | 72eed1c426bb1e3b40ee34df0a82b5f37582bbb5 (diff) |
Fix build with unknown C compilers
-rw-r--r-- | pugl/detail/types.h | 4 |
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. */ |