Procházet zdrojové kódy

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
Jonathan Adamczewski před 8 roky
rodič
revize
c8245bbf22
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      stb_dxt.h

+ 1 - 1
stb_dxt.h

@@ -88,7 +88,7 @@ STBDDEF void stb_compress_bc5_block(unsigned char *dest, const unsigned char *sr
 
 
 #ifndef STBD_MEMSET
 #ifndef STBD_MEMSET
 #include <string.h>
 #include <string.h>
-#define STBD_MEMSET(x)        memset(x)
+#define STBD_MEMSET           memset
 #endif
 #endif
 
 
 static unsigned char stb__Expand5[32];
 static unsigned char stb__Expand5[32];