]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
tests: Include check for __CYGWIN__ for crossbuilds
authorIleana Dumitrescu <ileanadumitrescu95@gmail.com>
Wed, 11 Dec 2024 16:43:47 +0000 (18:43 +0200)
committerIleana Dumitrescu <ileanadumitrescu95@gmail.com>
Mon, 26 May 2025 14:18:49 +0000 (17:18 +0300)
* tests/demo.at, tests/lt_dlexit.at: Add __CYGWIN__ to check for
crossbuilds of build cygwin with host mingw and the MSVC toolchain.

tests/demo.at
tests/lt_dlexit.at

index 036e434e70a8b560057193579f8a30b570233b9c..1b4a2e895e44b187c1b6882885237b14eeb2efbb 100644 (file)
@@ -152,7 +152,7 @@ AT_DATA([foo.h],
 #  endif
 #endif
 
-#if (defined _WIN32 || defined _WIN32_WCE) && !defined __GNUC__
+#if (defined _WIN32 || defined _WIN32_WCE || __CYGWIN__) && !defined __GNUC__
 # ifdef BUILDING_LIBHELLO
 #  ifdef DLL_EXPORT
 #   define LIBHELLO_SCOPE extern __declspec (dllexport)
index 19adeec48646a08f3f17f00eff780755bdce265b..51f26f2351c6374614351ab3d88a110eb6bd02ee 100644 (file)
@@ -115,8 +115,12 @@ AT_DATA([b1.c],
 [[#ifdef __cplusplus
 extern "C" {
 #endif
-#if defined DLL_EXPORT && defined _WIN32 && defined _MSC_VER
-#  define LIBA1_SCOPE extern __declspec (dllimport)
+#if defined DLL_EXPORT
+#  if defined __CYGWIN__ || defined _WIN32 || defined WIN32
+#    if defined _MSC_VER
+#      define LIBA1_SCOPE extern __declspec (dllimport)
+#    endif
+#  endif
 #endif
 #if !defined LIBA1_SCOPE
 #  define LIBA1_SCOPE extern