Skip to content

Commit 29ab532

Browse files
Merge pull request gameplay3d#1823 from louis-mclaughlin/mem-leak-compile-fix
Compile fix for linux for GP_USE_MEM_LEAK_DETECTION=1
2 parents f9259b8 + 3389b95 commit 29ab532

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

gameplay/src/DebugNew.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,10 @@ extern void printMemoryLeaks();
2020
#endif
2121
void* operator new (std::size_t size, const char* file, int line);
2222
void* operator new[] (std::size_t size, const char* file, int line);
23+
#ifdef WIN32
2324
void* operator new (std::size_t size) throw(std::bad_alloc);
2425
void* operator new[] (std::size_t size) throw(std::bad_alloc);
26+
#endif
2527
void* operator new (std::size_t size, const std::nothrow_t&) throw();
2628
void* operator new[] (std::size_t size, const std::nothrow_t&) throw();
2729
void operator delete (void* p) throw();

0 commit comments

Comments
 (0)