aboutsummaryrefslogtreecommitdiff
path: root/libevent-2.0.20-stable/strlcpy-internal.h
diff options
context:
space:
mode:
Diffstat (limited to 'libevent-2.0.20-stable/strlcpy-internal.h')
-rw-r--r--libevent-2.0.20-stable/strlcpy-internal.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/libevent-2.0.20-stable/strlcpy-internal.h b/libevent-2.0.20-stable/strlcpy-internal.h
new file mode 100644
index 0000000..1968c00
--- /dev/null
+++ b/libevent-2.0.20-stable/strlcpy-internal.h
@@ -0,0 +1,21 @@
+#ifndef _STRLCPY_INTERNAL_H_
+#define _STRLCPY_INTERNAL_H_
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#include "event2/event-config.h"
+
+#ifndef _EVENT_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
+