Don't pollute global namespace with fake sbrk for Windows 32/4732/1
authorJim Phillips <jim@ks.uiuc.edu>
Fri, 26 Oct 2018 01:32:04 +0000 (20:32 -0500)
committerJim Phillips <jim@ks.uiuc.edu>
Fri, 26 Oct 2018 01:32:04 +0000 (20:32 -0500)
Conflicts with similar fake sbrk added in Charm++ 6.9.0.

Change-Id: Ic15d55fa63d5f8939387a2881eced8193683d103

src/memusage.C

index c55f5b4..1a3117b 100644 (file)
@@ -11,7 +11,9 @@
 #include <sys/types.h>
 #include <unistd.h>
 #else
-int sbrk(int) { return 0; }
+namespace {
+  int sbrk(int) { return 0; }
+}
 #endif
 
 int memusageinit::initialized;