Jelajahi Sumber

Compile fix for linux for GP_USE_MEM_LEAK_DETECTION=1

louis-mclaughlin 10 tahun lalu
induk
melakukan
3389b95669
1 mengubah file dengan 2 tambahan dan 0 penghapusan
  1. 2 0
      gameplay/src/DebugNew.h

+ 2 - 0
gameplay/src/DebugNew.h

@@ -20,8 +20,10 @@ extern void printMemoryLeaks();
 #endif
 void* operator new (std::size_t size, const char* file, int line);
 void* operator new[] (std::size_t size, const char* file, int line);
+#ifdef WIN32
 void* operator new (std::size_t size) throw(std::bad_alloc);
 void* operator new[] (std::size_t size) throw(std::bad_alloc);
+#endif
 void* operator new (std::size_t size, const std::nothrow_t&) throw();
 void* operator new[] (std::size_t size, const std::nothrow_t&) throw();
 void operator delete (void* p) throw();