diff options
author | Hans <h-c-mueller@users.noreply.github.com> | 2022-09-18 01:56:25 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-17 19:56:25 -0400 |
commit | ee22ecbd11f52f8de1adbb2a6561aee2125a576a (patch) | |
tree | 7db565ad12b2bc7ec66a5b20b964e377415bb67c /configure.host | |
parent | 5e010474cf2e30fa053f0a1a460a752f06438cf7 (diff) | |
download | libffi-ee22ecbd11f52f8de1adbb2a6561aee2125a576a.tar.gz |
Add MSYS configuration files (#728)
* Add MSYS configuration files
MSYS behaves very similiar to Cygwin, e.g. also __CYGWIN__ is defined.
Now 'make check' passes on MSYS without extra patches.
* Fix warning extra tokens at end of #endif in closures.c
Extra tokens converted into a comment. Also nearby indentations corrected.
* Fix missing prototype warning mkostemp() on Cygwin
Cygwin requires also _GNU_SOURCE to be defined to enable mkostemp() prototype.
* Fix warning label ‘out’ defined but not used in ffi functions
Define same preprocessor conditions for goto and label visibility.
* Fix warning label ‘out’ defined but not used and related indentations.
Define same preprocessor conditions for goto and label visibility. Correct also
related indentations.
Co-authored-by: Hannes Müller <>
Diffstat (limited to 'configure.host')
-rw-r--r-- | configure.host | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/configure.host b/configure.host index 5cd5fc4..f23716f 100644 --- a/configure.host +++ b/configure.host @@ -6,7 +6,7 @@ # THIS TABLE IS SORTED. KEEP IT THAT WAY. # Most of the time we can define all the variables all at once... case "${host}" in - aarch64*-*-cygwin* | aarch64*-*-mingw* | aarch64*-*-win* ) + aarch64*-*-cygwin* | aarch64*-*-msys* | aarch64*-*-mingw* | aarch64*-*-win* ) TARGET=ARM_WIN64; TARGETDIR=aarch64 if test "${ax_cv_c_compiler_vendor}" = "microsoft"; then MSVC=1 @@ -30,7 +30,7 @@ case "${host}" in SOURCES="ffi.c arcompact.S" ;; - arm*-*-cygwin* | arm*-*-mingw* | arm*-*-win* ) + arm*-*-cygwin* | arm*-*-msys* | arm*-*-mingw* | arm*-*-win* ) TARGET=ARM_WIN32; TARGETDIR=arm if test "${ax_cv_c_compiler_vendor}" = "microsoft"; then MSVC=1 @@ -83,8 +83,8 @@ case "${host}" in TARGET=X86_FREEBSD; TARGETDIR=x86 ;; - i?86-*-cygwin* | i?86-*-mingw* | i?86-*-win* | i?86-*-os2* | i?86-*-interix* \ - | x86_64-*-cygwin* | x86_64-*-mingw* | x86_64-*-win* ) + i?86-*-cygwin* | i?86-*-msys* | i?86-*-mingw* | i?86-*-win* | i?86-*-os2* | i?86-*-interix* \ + | x86_64-*-cygwin* | x86_64-*-msys* | x86_64-*-mingw* | x86_64-*-win* ) TARGETDIR=x86 if test $ac_cv_sizeof_size_t = 4; then TARGET=X86_WIN32 |