summaryrefslogtreecommitdiff
path: root/tests/port/test_strdup.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/port/test_strdup.c')
-rw-r--r--tests/port/test_strdup.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/tests/port/test_strdup.c b/tests/port/test_strdup.c
index 8d08e1b..d8e5959 100644
--- a/tests/port/test_strdup.c
+++ b/tests/port/test_strdup.c
@@ -1,13 +1,7 @@
#include "port/sys.h"
-#ifdef HAVE_STRDUP
-#define SAVE_HAVE_STRDUP
-#undef HAVE_STRDUP
-#endif
+#define TEST_STRDUP
#include "port/string.c" /* for strdup */
-#ifdef SAVE_HAVE_STRDUP
-#undef strdup
-#endif
#include <stdlib.h> /* for exit, EXIT_SUCCESS, free */