Atomic ops are only used in guarded allocator, so move include into ifdef
authorSergey Sharybin <sergey.vfx@gmail.com>
Thu, 15 Aug 2013 12:28:30 +0000 (12:28 +0000)
committerSergey Sharybin <sergey.vfx@gmail.com>
Thu, 15 Aug 2013 12:28:30 +0000 (12:28 +0000)
intern/guardedalloc/intern/mallocn.c

index 0c512f4ee0ea26df7f0a579a51e6595642bb5411..cae0436b48b9eeda670d391c706b1d55e897bebc 100644 (file)
 
 #include "MEM_guardedalloc.h"
 
-#include "atomic_ops.h"
-
 /* should always be defined except for experimental cases */
 #ifdef WITH_GUARDEDALLOC
 
+#include "atomic_ops.h"
+
 /* Blame Microsoft for LLP64 and no inttypes.h, quick workaround needed: */
 #if defined(WIN64)
 #  define SIZET_FORMAT "%I64u"