summaryrefslogtreecommitdiff
path: root/strlcpy-internal.h
diff options
context:
space:
mode:
authorNiels Provos <provos@gmail.com>2007-01-03 07:11:17 +0000
committerNiels Provos <provos@gmail.com>2007-01-03 07:11:17 +0000
commit0db257b828ff7d9b480c6499651e469d2b20154b (patch)
tree1d25e40e8eeda53b3fc6450690a43f5da80eacb3 /strlcpy-internal.h
parent894b63654303649ee1b0fc888cbfded616e6d54e (diff)
downloadlibevent-0db257b828ff7d9b480c6499651e469d2b20154b.tar.gz
rename strlcpy so that it does not conflict with other tests; from
Nick Mathewson. svn:r306
Diffstat (limited to 'strlcpy-internal.h')
-rw-r--r--strlcpy-internal.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/strlcpy-internal.h b/strlcpy-internal.h
new file mode 100644
index 00000000..22b5f61d
--- /dev/null
+++ b/strlcpy-internal.h
@@ -0,0 +1,23 @@
+#ifndef _STRLCPY_INTERNAL_H_
+#define _STRLCPY_INTERNAL_H_
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif /* HAVE_CONFIG_H */
+
+#ifndef HAVE_STRLCPY
+#include <string.h>
+size_t _event_strlcpy(char *dst, const char *src, size_t siz);
+#define strlcpy _event_strlcpy
+#endif
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif
+