changeset 31180:89b49e13ac17

Support for building a shared library on Windows platforms.
author Bruno Haible <bruno@clisp.org>
date Mon, 20 Apr 2009 04:27:37 +0200
parents 410ff727f0b0
children 328bce54e467
files ChangeLog tests/uninorm/test-nfc.c tests/uninorm/test-nfd.c tests/uninorm/test-nfkc.c tests/uninorm/test-nfkd.c
diffstat 5 files changed, 36 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Mon Apr 20 00:06:17 2009 +0200
+++ b/ChangeLog	Mon Apr 20 04:27:37 2009 +0200
@@ -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.
--- a/tests/uninorm/test-nfc.c	Mon Apr 20 00:06:17 2009 +0200
+++ b/tests/uninorm/test-nfc.c	Mon Apr 20 04:27:37 2009 +0200
@@ -20,8 +20,10 @@
 
 #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 @@
 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 ();
--- a/tests/uninorm/test-nfd.c	Mon Apr 20 00:06:17 2009 +0200
+++ b/tests/uninorm/test-nfd.c	Mon Apr 20 04:27:37 2009 +0200
@@ -20,8 +20,10 @@
 
 #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 @@
 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 ();
--- a/tests/uninorm/test-nfkc.c	Mon Apr 20 00:06:17 2009 +0200
+++ b/tests/uninorm/test-nfkc.c	Mon Apr 20 04:27:37 2009 +0200
@@ -20,8 +20,10 @@
 
 #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 @@
 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 ();
--- a/tests/uninorm/test-nfkd.c	Mon Apr 20 00:06:17 2009 +0200
+++ b/tests/uninorm/test-nfkd.c	Mon Apr 20 04:27:37 2009 +0200
@@ -20,8 +20,10 @@
 
 #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 @@
 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 ();