ffi_test: Fix compilation on Windows.

db4
Doug Coleman 2014-11-09 10:39:50 -08:00
parent 4c1f7451a4
commit 1107edcc52
2 changed files with 12 additions and 0 deletions

View 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

View 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