Author: chromatic
Date: Mon Mar 31 17:57:22 2008
New Revision: 26678

Modified:
   trunk/src/headers.c

Log:
[GC] Fixed build for --gc=libc (Senaka Fernando, RT #52332).

Modified: trunk/src/headers.c
==============================================================================
--- trunk/src/headers.c (original)
+++ trunk/src/headers.c Mon Mar 31 17:57:22 2008
@@ -43,6 +43,15 @@
 static PMC_EXT * new_pmc_ext(PARROT_INTERP)
         __attribute__nonnull__(1);
 
+#ifdef GC_IS_MALLOC
+static int sweep_cb_buf(PARROT_INTERP,
+    ARGMOD(Small_Object_Pool *pool),
+    SHIM(int flag),
+    ARGIN(void *arg))
+        __attribute__nonnull__(1)
+        __attribute__nonnull__(2)
+        FUNC_MODIFIES(*pool);
+#else
 static int sweep_cb_buf(PARROT_INTERP,
     ARGMOD(Small_Object_Pool *pool),
     SHIM(int flag),
@@ -50,6 +59,7 @@
         __attribute__nonnull__(1)
         __attribute__nonnull__(2)
         FUNC_MODIFIES(*pool);
+#endif
 
 static int sweep_cb_pmc(PARROT_INTERP,
     ARGMOD(Small_Object_Pool *pool),
@@ -769,7 +779,11 @@
 
 static int
 sweep_cb_buf(PARROT_INTERP, ARGMOD(Small_Object_Pool *pool), SHIM(int flag),
+#ifdef GC_IS_MALLOC
+        ARGIN(void *arg))
+#else
         SHIM(void *arg))
+#endif
 {
 #ifdef GC_IS_MALLOC
     const int pass = (int)(INTVAL)arg;

Reply via email to