Fix some header files in the FFI.
authorTaylor R Campbell <campbell@mumble.net>
Wed, 27 Apr 2011 21:16:04 +0000 (21:16 +0000)
committerTaylor R Campbell <campbell@mumble.net>
Wed, 27 Apr 2011 21:16:04 +0000 (21:16 +0000)
src/ffi/ffi-test.c.stay
src/ffi/ffi-test.h
src/ffi/generator.scm

index 033715697969394e2923ebc94f243ea84f6a0ad6..8cd9d30d4064abc4efabcc29960568baeefdd2b8 100644 (file)
@@ -2,6 +2,10 @@
 
 /* A test library; used to test the C/Unix FFI. */
 
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+
 #include "ffi-test.h"
 
 static void *callback_data;
index f8e5aebcc643427b206f195d24bda72d01016c0b..2154379258d7ef3ba3cb250594fb286ed23f46b7 100644 (file)
@@ -2,9 +2,6 @@
 
 /* Header for a test library; used to test the C/Unix FFI. */
 
-#include <string.h>
-#include <stdio.h>
-
 typedef struct {
 
   char first;
index f1f2627697057b79fb22b4c6e910027231c4382d..4c0ce24438ecbf1e8ba2920fab3fbcb52d54a5a8 100644 (file)
@@ -495,6 +495,8 @@ Scm_"name" ("arglist")
 /* Prefix */
 "prefix"
 /* End Prefix */
+
+#include <stdio.h>
 " (basics-grovel-func) (enums-grovel-func includes)))
       (flush-output)
       (let* ((structs (gen-struct-grovel-funcs includes))