aboutsummaryrefslogtreecommitdiff
path: root/ports/libffi/auto-define-static-macro.patch
diff options
context:
space:
mode:
authorcodicodi <rob.ceglinski@gmail.com>2017-01-10 15:28:45 +0100
committerGitHub <noreply@github.com>2017-01-10 15:28:45 +0100
commitf5fb72819614a8c4cb21f67bf887acfc414fc213 (patch)
tree983d497099015deb95655640e2d2d8f943f5f6b7 /ports/libffi/auto-define-static-macro.patch
parentb280f57002044036c1c3c9a446c06e8e0a34fb00 (diff)
downloadvcpkg-f5fb72819614a8c4cb21f67bf887acfc414fc213.tar.gz
vcpkg-f5fb72819614a8c4cb21f67bf887acfc414fc213.zip
add libffi
Diffstat (limited to 'ports/libffi/auto-define-static-macro.patch')
-rw-r--r--ports/libffi/auto-define-static-macro.patch14
1 files changed, 14 insertions, 0 deletions
diff --git a/ports/libffi/auto-define-static-macro.patch b/ports/libffi/auto-define-static-macro.patch
new file mode 100644
index 000000000..468a2fc36
--- /dev/null
+++ b/ports/libffi/auto-define-static-macro.patch
@@ -0,0 +1,14 @@
+diff --git a/ffi.h b/ffi.h
+index 8d5eac2..0b0c2f6 100644
+--- a/ffi.h
++++ b/ffi.h
+@@ -174,6 +174,9 @@ typedef struct _ffi_type
+ /* of the library, but don't worry about that. Besides, */
+ /* as a workaround, they can define FFI_BUILDING if they */
+ /* *know* they are going to link with the static library. */
++
++#define FFI_BUILDING
++
+ #if defined _MSC_VER && !defined FFI_BUILDING
+ #define FFI_EXTERN extern __declspec(dllimport)
+ #else