Support for building a shared library on Windows platforms.
authorBruno Haible <bruno@clisp.org>
Mon, 20 Apr 2009 02:27:37 +0000 (04:27 +0200)
committerBruno Haible <bruno@clisp.org>
Mon, 20 Apr 2009 02:27:37 +0000 (04:27 +0200)
ChangeLog
tests/uninorm/test-nfc.c
tests/uninorm/test-nfd.c
tests/uninorm/test-nfkc.c
tests/uninorm/test-nfkd.c

index 25cc80815ffb57129feefc096d248c6f6f0afc3a..11b1a773a12d3d407a7b3805116e5c51de092395 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,15 @@
+2009-04-19  Bruno Haible  <bruno@clisp.org>
+
+       Support for building a shared library on Windows platforms.
+       * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
+       (main): Test the presence of UNINORM_NFC here.
+       * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
+       (main): Test the presence of UNINORM_NFD here.
+       * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
+       (main): Test the presence of UNINORM_NFKC here.
+       * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
+       (main): Test the presence of UNINORM_NFKD here.
+
 2009-04-19  Bruno Haible  <bruno@clisp.org>
 
        Avoid a compiler warning.
index 7e7ce9c5c1c8ca5fc593c4796539400611ba8f07..ca957102f4c4710180ff3dd8a9976cad7ecd1262 100644 (file)
 
 #include "uninorm.h"
 
+#if !WOE32DLL
 /* Check that UNINORM_NFC is defined and links.  */
 uninorm_t n = UNINORM_NFC;
+#endif
 
 extern void test_u8_nfc (void);
 extern void test_u16_nfc (void);
@@ -30,6 +32,10 @@ extern void test_u32_nfc (void);
 int
 main ()
 {
+  /* Check that UNINORM_NFC is defined and links.  */
+  uninorm_t nf = UNINORM_NFC;
+  (void) nf;
+
   test_u32_nfc ();
   test_u16_nfc ();
   test_u8_nfc ();
index 99580cb338d71f9ce3fe531a19ba1d7cfe91dd2c..2a7e55b018c02f33ffec9f406364815f40604a16 100644 (file)
 
 #include "uninorm.h"
 
+#if !WOE32DLL
 /* Check that UNINORM_NFD is defined and links.  */
 uninorm_t n = UNINORM_NFD;
+#endif
 
 extern void test_u8_nfd (void);
 extern void test_u16_nfd (void);
@@ -30,6 +32,10 @@ extern void test_u32_nfd (void);
 int
 main ()
 {
+  /* Check that UNINORM_NFD is defined and links.  */
+  uninorm_t nf = UNINORM_NFD;
+  (void) nf;
+
   test_u32_nfd ();
   test_u16_nfd ();
   test_u8_nfd ();
index 198c0f93b96c145704bbe1c58a0f7fced961e31d..2e57a15e18446ec0382d4b1591ab805debedf7e2 100644 (file)
 
 #include "uninorm.h"
 
+#if !WOE32DLL
 /* Check that UNINORM_NFKC is defined and links.  */
 uninorm_t n = UNINORM_NFKC;
+#endif
 
 extern void test_u8_nfkc (void);
 extern void test_u16_nfkc (void);
@@ -30,6 +32,10 @@ extern void test_u32_nfkc (void);
 int
 main ()
 {
+  /* Check that UNINORM_NFKC is defined and links.  */
+  uninorm_t nf = UNINORM_NFKC;
+  (void) nf;
+
   test_u32_nfkc ();
   test_u16_nfkc ();
   test_u8_nfkc ();
index d403042679362e698b0bae79d1aaf7031cce0df7..8e330feb1119629546185daa67a6375eb7eca361 100644 (file)
 
 #include "uninorm.h"
 
+#if !WOE32DLL
 /* Check that UNINORM_NFKD is defined and links.  */
 uninorm_t n = UNINORM_NFKD;
+#endif
 
 extern void test_u8_nfkd (void);
 extern void test_u16_nfkd (void);
@@ -30,6 +32,10 @@ extern void test_u32_nfkd (void);
 int
 main ()
 {
+  /* Check that UNINORM_NFKD is defined and links.  */
+  uninorm_t nf = UNINORM_NFKD;
+  (void) nf;
+
   test_u32_nfkd ();
   test_u16_nfkd ();
   test_u8_nfkd ();