Browse Source

Resolve undefined _aligned_malloc compile error

nosoop 1 year ago
parent
commit
59fe06351f
1 changed files with 4 additions and 0 deletions
  1. 4 0
      AMBuildScript

+ 4 - 0
AMBuildScript

@@ -286,6 +286,10 @@ class MMSConfig(object):
     else: # todo: is it better to check compiler.behavior?
       compiler.defines += ['COMPILER_GCC']
 
+    if sdk.name in ['css', 'hl2dm', 'dods', 'sdk2013', 'bms', 'tf2', 'l4d', 'nucleardawn', 'l4d2', 'dota', 'pvkii']:
+      if builder.target.platform in ['linux', 'mac']:
+        compiler.defines += ['NO_HOOK_MALLOC', 'NO_MALLOC_OVERRIDE']
+
     for path in paths:
       compiler.cxxincludes += [os.path.join(sdk.path, *path)]