aboutsummaryrefslogtreecommitdiff
path: root/src/setup.h
diff options
context:
space:
mode:
authorDan Fandrich <dan@coneharvesters.com>2006-07-11 17:02:06 +0000
committerDan Fandrich <dan@coneharvesters.com>2006-07-11 17:02:06 +0000
commitc6fc5a1a269796a47ac265751e0baafcf436391a (patch)
tree24d7bf0d6bc52449d3e31fa4f610b66e1b726d8f /src/setup.h
parent012d75442ab21cbf7c487a3548c6db9151567507 (diff)
Moved strdup replacement from src/main.c into src/strdup.c so it's available
in libcurl as well, if necessary.
Diffstat (limited to 'src/setup.h')
-rw-r--r--src/setup.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/setup.h b/src/setup.h
index d3814fef4..e911922c9 100644
--- a/src/setup.h
+++ b/src/setup.h
@@ -177,4 +177,9 @@ int fileno( FILE *stream);
#define UNPRINTABLE_CHAR '.'
#endif
+#ifndef HAVE_STRDUP
+#include "strdup.h"
+#define strdup(ptr) curlx_strdup(ptr)
+#endif
+
#endif /* __SRC_CURL_SETUP_H */