Pārlūkot izejas kodu

Resolve undefined _aligned_malloc compile error

nosoop 1 gadu atpakaļ
vecāks
revīzija
59fe06351f
1 mainītis faili ar 4 papildinājumiem un 0 dzēšanām
  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)]