Explorar el Código

don't use reserved identifier pattern in stringify()

Oswald Buddenhagen hace 6 años
padre
commit
b885e0e03a
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      src/common.h

+ 2 - 2
src/common.h

@@ -37,8 +37,8 @@ typedef unsigned long ulong;
 
 #define as(ar) (sizeof(ar)/sizeof(ar[0]))
 
-#define __stringify(x) #x
-#define stringify(x) __stringify(x)
+#define stringify__(x) #x
+#define stringify(x) stringify__(x)
 
 #define shifted_bit(in, from, to) \
 	(((uint)(in) / (from > to ? from / to : 1) * (to > from ? to / from : 1)) & to)