mem_in_use can be victim to C++ name mangling on some platforms...
authorPeter Schlaile <peter@schlaile.de>
Sun, 5 Feb 2006 23:46:55 +0000 (23:46 +0000)
committerPeter Schlaile <peter@schlaile.de>
Sun, 5 Feb 2006 23:46:55 +0000 (23:46 +0000)
intern/memutil/MEM_CacheLimiter.h

index 3026e827c3f2e2721d0e619df676e7411dcf7eca..c1c805b63101a92cc6ce9b21b3af44cefb588217 100644 (file)
@@ -66,6 +66,8 @@ class MEM_CacheLimiter;
 extern "C" {
        extern void MEM_CacheLimiter_set_maximum(int m);
        extern int MEM_CacheLimiter_get_maximum();
+        // this is rather _ugly_!
+        extern int mem_in_use;
 };
 #endif
 
@@ -141,9 +143,6 @@ public:
                delete handle;
        }
        void enforce_limits() {
-               // this is rather _ugly_!
-               extern int mem_in_use;
-
                int max = MEM_CacheLimiter_get_maximum();
                if (max == 0) {
                        return;