From d678291f48f5f5f300ceb0e87baf3894b58fac3e Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 21 Oct 2020 14:48:23 +0200 Subject: Fix building with clang on Windows --- include/pugl/detail/types.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/pugl/detail') diff --git a/include/pugl/detail/types.h b/include/pugl/detail/types.h index edd2bd0..e18eb87 100644 --- a/include/pugl/detail/types.h +++ b/include/pugl/detail/types.h @@ -31,7 +31,7 @@ // Unused parameter macro to suppresses warnings and make it impossible to use #if defined(__cplusplus) # define PUGL_UNUSED(name) -#elif defined(__GNUC__) +#elif defined(__GNUC__) || defined(__clang__) # define PUGL_UNUSED(name) name##_unused __attribute__((__unused__)) #else # define PUGL_UNUSED(name) name -- cgit v1.2.1