aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorfwg <fwg@users.noreply.github.com>2018-04-02 13:55:31 +0200
committerAnthony Green <green@moxielogic.com>2018-04-02 06:55:31 -0500
commitaf6773d6ab4db0577bc6b932ab5a2f98a0a8dca2 (patch)
tree812b6d0727d5104317df93387c2ac341aaf60b9e /src
parent48bdb02867edb7e9f3785ccb4bdff1087fb44246 (diff)
downloadplatform_external_libffi-af6773d6ab4db0577bc6b932ab5a2f98a0a8dca2.tar.gz
platform_external_libffi-af6773d6ab4db0577bc6b932ab5a2f98a0a8dca2.tar.bz2
platform_external_libffi-af6773d6ab4db0577bc6b932ab5a2f98a0a8dca2.zip
Fix appveyor windows build (#420)
* Fix msvcc dll build by adding dllexport decorations to all API declarations * Fix appveyor build for VS 2013 Use the new -DFFI_BUILDING_DLL for producing a working DLL. Update the msvcc.sh wrapper script to successfully compile the testsuite files. * MSVC build: suppress warnings in testsuite * fix testsuite on appveyor
Diffstat (limited to 'src')
-rw-r--r--src/types.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/types.c b/src/types.c
index 7e80aec..9ec27f6 100644
--- a/src/types.c
+++ b/src/types.c
@@ -38,6 +38,7 @@ struct struct_align_##name { \
char c; \
type x; \
}; \
+FFI_EXTERN \
maybe_const ffi_type ffi_type_##name = { \
sizeof(type), \
offsetof(struct struct_align_##name, x), \
@@ -52,6 +53,7 @@ struct struct_align_complex_##name { \
char c; \
_Complex type x; \
}; \
+FFI_EXTERN \
maybe_const ffi_type ffi_type_complex_##name = { \
sizeof(_Complex type), \
offsetof(struct struct_align_complex_##name, x), \
@@ -60,7 +62,7 @@ maybe_const ffi_type ffi_type_complex_##name = { \
}
/* Size and alignment are fake here. They must not be 0. */
-const ffi_type ffi_type_void = {
+FFI_EXTERN const ffi_type ffi_type_void = {
1, 1, FFI_TYPE_VOID, NULL
};