diff src/mem-limits.h @ 251:677f6a0ee643 r20-5b24

Import from CVS: tag r20-5b24
author cvs
date Mon, 13 Aug 2007 10:19:59 +0200
parents f220cc83d72e
children c5d627a313b1
line wrap: on
line diff
--- a/src/mem-limits.h	Mon Aug 13 10:19:12 2007 +0200
+++ b/src/mem-limits.h	Mon Aug 13 10:19:59 2007 +0200
@@ -129,6 +129,22 @@
 /* Number of bytes of writable memory we can expect to be able to get */
 extern unsigned int lim_data;
 
+#ifdef HEAP_IN_DATA
+extern unsigned long static_heap_size;
+extern int initialized;
+static void
+get_lim_data (void)
+{
+  if (!initialized)
+    {
+      lim_data = -1; /* static_heap_size; */
+    }
+  else
+    {
+      lim_data = -1;
+    }
+}
+#else
 #ifdef NO_LIM_DATA
 static void
 get_lim_data (void)
@@ -159,7 +175,7 @@
 }
 
 #else /* not USG */
-#if defined( WINDOWSNT ) || defined (__CYGWIN32__)
+#if defined( WINDOWSNT )
 
 static void
 get_lim_data (void)
@@ -206,5 +222,6 @@
 #endif /* not WINDOWSNT */
 #endif /* not USG */
 #endif /* not NO_LIM_DATA */
+#endif /* not HEAP_IN_DATA */
 
 #endif /* _XEMACS_MEM_LIMITS_H_ */