* as/asx8051.dsp: added mcs51/strcmpi.h
[fw/sdcc] / src / SDCCalloc.h
index 2ffe5ec246d58e02d8087f4b16611cd7b8bb5b49..fc7fbb6a996b94597b6fd451dd92418e37cc02d0 100644 (file)
@@ -4,7 +4,7 @@
 
 #include "SDCCerr.h"
 
-#ifdef OPT_DISABLE_GC
+#if OPT_DISABLE_GC != 0
 
 # include <malloc.h>
 # define GC_malloc(x) calloc((x), 1)
@@ -25,7 +25,7 @@
             exit (1);                               \
          }
 
-#define ALLOC_ATOMIC(x,sz)   if (!(x = GC_malloc_atomic(sz)))   \
+#define ALLOC_ATOMIC(x,sz)   if (!((x) = GC_malloc_atomic(sz)))   \
          {                                               \
             werror(E_OUT_OF_MEM,__FILE__,(long) sz);     \
             exit (1);                                    \