diff options
| author | Alexander Karatarakis <alex@karatarakis.com> | 2017-01-10 14:59:34 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-01-10 14:59:34 -0800 |
| commit | fed2ffdfc688c8cd617d7fc8d97d74d28d733967 (patch) | |
| tree | 612f441df5baeba30aa9523e46ec415cda13051b /ports/libffi/auto-define-static-macro.patch | |
| parent | 40ffd65f0e36f4b448437637e214c2a3b083ec02 (diff) | |
| parent | 54918bc63af0e776d3419a402338ab156ea6f279 (diff) | |
| download | vcpkg-fed2ffdfc688c8cd617d7fc8d97d74d28d733967.tar.gz vcpkg-fed2ffdfc688c8cd617d7fc8d97d74d28d733967.zip | |
Merge pull request #509 from codicodi/add-ffi
Add libffi
Diffstat (limited to 'ports/libffi/auto-define-static-macro.patch')
| -rw-r--r-- | ports/libffi/auto-define-static-macro.patch | 14 |
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 |
