diff options
author | Andreas Baumann <abaumann@yahoo.com> | 2009-02-22 20:56:00 +0100 |
---|---|---|
committer | Andreas Baumann <abaumann@yahoo.com> | 2009-02-22 20:56:00 +0100 |
commit | 674109843a62212ff595f74c1f44d7ff74c859d6 (patch) | |
tree | 0f17e65f99d26d1f06aa26d175ba4af76194d1b1 /tests/port | |
parent | d310129bc8df76249e7beca2d50b5511614dc917 (diff) | |
download | wolfbones-674109843a62212ff595f74c1f44d7ff74c859d6.tar.gz wolfbones-674109843a62212ff595f74c1f44d7ff74c859d6.tar.bz2 |
fixed porting tests, and fixed Solaris 8 port of string.h
Diffstat (limited to 'tests/port')
-rw-r--r-- | tests/port/test_strcasecmp.c | 5 | ||||
-rw-r--r-- | tests/port/test_strdup.c | 5 | ||||
-rw-r--r-- | tests/port/test_strerror_r.c | 5 | ||||
-rw-r--r-- | tests/port/test_strncasecmp.c | 5 |
4 files changed, 20 insertions, 0 deletions
diff --git a/tests/port/test_strcasecmp.c b/tests/port/test_strcasecmp.c index 82ea785..fb17eed 100644 --- a/tests/port/test_strcasecmp.c +++ b/tests/port/test_strcasecmp.c @@ -1,8 +1,13 @@ #include "port/sys.h" +#ifdef HAVE_STRCASECMP +#define SAVE_HAVE_STRCASECMP #undef HAVE_STRCASECMP +#endif #include "port/string.c" /* for strcasecmp */ +#ifdef SAVE_HAVE_STRCASECMP #undef strcasecmp +#endif #include <stdlib.h> /* for EXIT_SUCCESS, EXIT_FAILURE */ diff --git a/tests/port/test_strdup.c b/tests/port/test_strdup.c index 1853404..8d08e1b 100644 --- a/tests/port/test_strdup.c +++ b/tests/port/test_strdup.c @@ -1,8 +1,13 @@ #include "port/sys.h" +#ifdef HAVE_STRDUP +#define SAVE_HAVE_STRDUP #undef HAVE_STRDUP +#endif #include "port/string.c" /* for strdup */ +#ifdef SAVE_HAVE_STRDUP #undef strdup +#endif #include <stdlib.h> /* for exit, EXIT_SUCCESS, free */ diff --git a/tests/port/test_strerror_r.c b/tests/port/test_strerror_r.c index 05244cd..0ff53d6 100644 --- a/tests/port/test_strerror_r.c +++ b/tests/port/test_strerror_r.c @@ -1,8 +1,13 @@ #include "port/sys.h" +#ifdef HAVE_STRERROR_R +#define SAVE_HAVE_STRERROR_R #undef HAVE_STRERROR_R +#endif #include "port/string.c" /* for strerror_r */ +#ifdef SAVE_HAVE_STRERROR_R #undef strerror_r +#endif #include <stdlib.h> /* for exit, EXIT_SUCCESS, free */ #include <stdio.h> /* for printf */ diff --git a/tests/port/test_strncasecmp.c b/tests/port/test_strncasecmp.c index da1eb93..0483c41 100644 --- a/tests/port/test_strncasecmp.c +++ b/tests/port/test_strncasecmp.c @@ -1,8 +1,13 @@ #include "port/sys.h" +#ifdef HAVE_STRNCASECMP +#define SAVE_HAVE_STRNCASECMP #undef HAVE_STRNCASECMP +#endif #include "port/string.c" /* for strcasecmp */ +#ifdef SAVE_HAVE_STRNCASECMP #undef strncasecmp +#endif #include <stdlib.h> /* for EXIT_SUCCESS, EXIT_FAILURE */ |