From: Bruno Haible Date: Mon, 20 Apr 2009 02:27:37 +0000 (+0200) Subject: Support for building a shared library on Windows platforms. X-Git-Tag: v0.1~5998 X-Git-Url: http://erislabs.org.uk/gitweb/?a=commitdiff_plain;h=f0a6311ce0751b7dda38d15ba093323ec7a5fd2b;p=gnulib.git Support for building a shared library on Windows platforms. --- diff --git a/ChangeLog b/ChangeLog index 25cc80815..11b1a773a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,17 @@ 2009-04-19 Bruno Haible + 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 + Avoid a compiler warning. * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file): Change type of variable 'sequence'. diff --git a/tests/uninorm/test-nfc.c b/tests/uninorm/test-nfc.c index 7e7ce9c5c..ca957102f 100644 --- a/tests/uninorm/test-nfc.c +++ b/tests/uninorm/test-nfc.c @@ -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 @@ 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 (); diff --git a/tests/uninorm/test-nfd.c b/tests/uninorm/test-nfd.c index 99580cb33..2a7e55b01 100644 --- a/tests/uninorm/test-nfd.c +++ b/tests/uninorm/test-nfd.c @@ -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 @@ 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 (); diff --git a/tests/uninorm/test-nfkc.c b/tests/uninorm/test-nfkc.c index 198c0f93b..2e57a15e1 100644 --- a/tests/uninorm/test-nfkc.c +++ b/tests/uninorm/test-nfkc.c @@ -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 @@ 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 (); diff --git a/tests/uninorm/test-nfkd.c b/tests/uninorm/test-nfkd.c index d40304267..8e330feb1 100644 --- a/tests/uninorm/test-nfkd.c +++ b/tests/uninorm/test-nfkd.c @@ -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 @@ 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 ();