Browse Source

inconsistent #if

David Rose 20 years ago
parent
commit
4ddb69b56f
1 changed files with 2 additions and 2 deletions
  1. 2 2
      dtool/LocalSetup.pp

+ 2 - 2
dtool/LocalSetup.pp

@@ -496,8 +496,8 @@ $[cdefine USE_MEMORY_NOWRAPPERS]
 #define VC6_STYLE_ALLOCATOR
 #define VC6_STYLE_ALLOCATOR
 #define MODERN_STYLE_ALLOCATOR
 #define MODERN_STYLE_ALLOCATOR
 #define NO_STYLE_ALLOCATOR
 #define NO_STYLE_ALLOCATOR
-#if $[eq $[OPTIMIZE], 4]
-  // In optimize level 4, we never try to use custom allocators.
+#if $[not $[DO_MEMORY_USAGE]]
+  // Without DO_MEMORY_USAGE, we never try to use custom allocators.
   #set NO_STYLE_ALLOCATOR 1
   #set NO_STYLE_ALLOCATOR 1
 #elif $[eq $[STL_ALLOCATOR], OLD]
 #elif $[eq $[STL_ALLOCATOR], OLD]
   // "OLD": Irix 6.2-era STL.
   // "OLD": Irix 6.2-era STL.