aboutsummaryrefslogtreecommitdiff
path: root/strlcpy-internal.h
diff options
context:
space:
mode:
authorChristopher Wiley <wiley@google.com>2015-07-01 13:36:18 -0700
committerChristopher Wiley <wiley@google.com>2015-07-01 14:49:55 -0700
commite867981d427db5e0b860d67485838e1f9e8c37da (patch)
tree1f219cb08e744724189858dbe03b22f29474f1e4 /strlcpy-internal.h
parent3f8dfd75897939837a588807231314ff45d813ab (diff)
downloadlibevent-e867981d427db5e0b860d67485838e1f9e8c37da.tar.gz
Add libevent-2.0.22-stable code
Existing NOTICE and MODULE_LICENSE_BSD_LIKE files describe this code. Removed the following directories to reduce size: WIN32-Code/* compat/* m4/* sample/* test/* Bug: 22229743 Change-Id: I1f32e0e7467edaa3c5ea5991b5bbec2db50762ff
Diffstat (limited to 'strlcpy-internal.h')
-rw-r--r--strlcpy-internal.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/strlcpy-internal.h b/strlcpy-internal.h
new file mode 100644
index 0000000..1968c00
--- /dev/null
+++ b/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
+