]> gitweb.factorcode.org Git - factor.git/commitdiff
ffi_test: Fix compilation on Windows.
authorDoug Coleman <doug.coleman@gmail.com>
Sun, 9 Nov 2014 18:39:50 +0000 (10:39 -0800)
committerDoug Coleman <doug.coleman@gmail.com>
Sun, 9 Nov 2014 18:39:50 +0000 (10:39 -0800)
vm/ffi_test.c
vm/ffi_test.h

index 65b24faa717d2ab77e02523362ad301ba6e059de..06ce2b2af706125f715fd1885962dc5be6860dbe 100644 (file)
@@ -307,6 +307,9 @@ unsigned long long ffi_test_60(unsigned long long x) {
   return x;
 }
 
+/* C99 features */
+#ifndef _MSC_VER
+
 struct bool_and_ptr ffi_test_61() {
   struct bool_and_ptr bap;
   bap.b = true;
@@ -327,3 +330,5 @@ struct ulonglong_pair ffi_test_63() {
   ullp.b = 0x1234567891234567;
   return ullp;
 }
+
+#endif
index a36d66cf434ca7d835e5c0d3c4bf111aa03ca7b7..8326097a8a9d615e6f68dca75992dad9fecaf8e8 100644 (file)
@@ -203,6 +203,11 @@ FACTOR_EXPORT FACTOR_FASTCALL(struct test_struct_11)
 FACTOR_EXPORT signed long long ffi_test_59(signed long long x);
 FACTOR_EXPORT unsigned long long ffi_test_60(unsigned long long x);
 
+/* C99 features */
+#ifndef _MSC_VER
+
+#include <stdbool.h>
+
 struct bool_and_ptr {
     bool b;
     void* ptr;
@@ -223,3 +228,5 @@ struct ulonglong_pair {
 };
 
 FACTOR_EXPORT struct ulonglong_pair ffi_test_63();
+
+#endif