]> gitweb.factorcode.org Git - factor.git/blobdiff - basis/compiler/tests/alien.factor
Fix ffi-test library to work with Windows SDK. Turns out MINGW has a different ABI...
[factor.git] / basis / compiler / tests / alien.factor
old mode 100644 (file)
new mode 100755 (executable)
index 4cfbe8f..aba73d1
@@ -556,6 +556,9 @@ FUNCTION: test_struct_14 ffi_test_44 ( ) ; inline
 
 [ ] [ stack-frame-bustage 2drop ] unit-test
 
+! C99 tests
+os windows? [
+
 FUNCTION: complex-float ffi_test_45 ( int x ) ;
 
 [ C{ 3.0 0.0 } ] [ 3 ffi_test_45 ] unit-test
@@ -585,6 +588,8 @@ FUNCTION: short ffi_test_48 ( bool-field-test x ) ;
     ffi_test_48
 ] unit-test
 
+] unless
+
 ! Regression: calling an undefined function would raise a protection fault
 FUNCTION: void this_does_not_exist ( ) ;