]> Savannah Git Hosting - gnulib.git/commitdiff
uninorm tests: Fix compilation error on Cygwin.
authorBruno Haible <bruno@clisp.org>
Mon, 18 Jan 2021 08:10:55 +0000 (09:10 +0100)
committerBruno Haible <bruno@clisp.org>
Mon, 18 Jan 2021 08:10:55 +0000 (09:10 +0100)
* tests/uninorm/test-nfc.c (n): Don't define when using a preinstalled
libunistring on Windows.
* tests/uninorm/test-nfd.c (n): Likewise.
* tests/uninorm/test-nfkc.c (n): Likewise.
* tests/uninorm/test-nfkd.c (n): Likewise.

ChangeLog
tests/uninorm/test-nfc.c
tests/uninorm/test-nfd.c
tests/uninorm/test-nfkc.c
tests/uninorm/test-nfkd.c

index 0c7fa2296442e47d6fc9419ad3cd1161aa85250c..a7a0650fefe7e941544f3c0ce20c3c4d68b73585 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2021-01-18  Bruno Haible  <bruno@clisp.org>
+
+       uninorm tests: Fix compilation error on Cygwin.
+       * tests/uninorm/test-nfc.c (n): Don't define when using a preinstalled
+       libunistring on Windows.
+       * tests/uninorm/test-nfd.c (n): Likewise.
+       * tests/uninorm/test-nfkc.c (n): Likewise.
+       * tests/uninorm/test-nfkd.c (n): Likewise.
+
 2021-01-17  Bruno Haible  <bruno@clisp.org>
 
        immutable: Implement on native Windows.
index 0e908343fc67ea63427cfc49ede28484c0ffc1d4..0a7d857b8272447f45dd2aec1b7d8286106a733d 100644 (file)
@@ -20,7 +20,7 @@
 
 #include "uninorm.h"
 
-#if !(WOE32DLL || defined __ANDROID__)
+#if !(((defined _WIN32 || defined __CYGWIN__) && (HAVE_LIBUNISTRING || WOE32DLL)) || defined __ANDROID__)
 /* Check that UNINORM_NFC is defined and links.  */
 uninorm_t n = UNINORM_NFC;
 #endif
index 63a40f9392148f110bc9acfaa0a22cc6dbb2e527..e5a06bc49f5e5e321402481df8c96f38eea5c23b 100644 (file)
@@ -20,7 +20,7 @@
 
 #include "uninorm.h"
 
-#if !(WOE32DLL || defined __ANDROID__)
+#if !(((defined _WIN32 || defined __CYGWIN__) && (HAVE_LIBUNISTRING || WOE32DLL)) || defined __ANDROID__)
 /* Check that UNINORM_NFD is defined and links.  */
 uninorm_t n = UNINORM_NFD;
 #endif
index 0505319c95c0d198d1e9e6d2d50a837b1d99e001..52709d76854ac84c99146f508ed02055397ee756 100644 (file)
@@ -20,7 +20,7 @@
 
 #include "uninorm.h"
 
-#if !(WOE32DLL || defined __ANDROID__)
+#if !(((defined _WIN32 || defined __CYGWIN__) && (HAVE_LIBUNISTRING || WOE32DLL)) || defined __ANDROID__)
 /* Check that UNINORM_NFKC is defined and links.  */
 uninorm_t n = UNINORM_NFKC;
 #endif
index 1e20d9a20ceb95a43ab005598c09c7cb2531579b..5e374e34235736d2074047c0fb484734f30bae57 100644 (file)
@@ -20,7 +20,7 @@
 
 #include "uninorm.h"
 
-#if !(WOE32DLL || defined __ANDROID__)
+#if !(((defined _WIN32 || defined __CYGWIN__) && (HAVE_LIBUNISTRING || WOE32DLL)) || defined __ANDROID__)
 /* Check that UNINORM_NFKD is defined and links.  */
 uninorm_t n = UNINORM_NFKD;
 #endif