From c8245bbf22aa2cf9056b346ab56ab4ee525a2905 Mon Sep 17 00:00:00 2001 From: Jonathan Adamczewski Date: Mon, 28 Aug 2017 23:13:39 -0700 Subject: [PATCH] Remove arg from memset macro My clang doesn't like the macro defined this way, choking at the callsite on line 195 with "too many arguments provided to function-like macro invocation" This change matches what is done for STBTT_memset in stb_truetype.h --- stb_dxt.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stb_dxt.h b/stb_dxt.h index b53aca7..6504325 100644 --- a/stb_dxt.h +++ b/stb_dxt.h @@ -88,7 +88,7 @@ STBDDEF void stb_compress_bc5_block(unsigned char *dest, const unsigned char *sr #ifndef STBD_MEMSET #include -#define STBD_MEMSET(x) memset(x) +#define STBD_MEMSET memset #endif static unsigned char stb__Expand5[32];