summaryrefslogtreecommitdiff
path: root/libs/tgl/libevent/strlcpy-internal.h
diff options
context:
space:
mode:
authorKirill Volinsky <mataes2007@gmail.com>2016-03-11 14:41:45 +0000
committerKirill Volinsky <mataes2007@gmail.com>2016-03-11 14:41:45 +0000
commitbb5bb4407f2578ed8d6dc3b41f6ddb8b798e560c (patch)
tree1e21750da4e7e9a2b81993f9a5484be95e394cfc /libs/tgl/libevent/strlcpy-internal.h
parent2d0a5026812236b19c573bbe8d08aa20df7083d9 (diff)
tgl compile under vc2013
git-svn-id: http://svn.miranda-ng.org/main/trunk@16457 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'libs/tgl/libevent/strlcpy-internal.h')
-rw-r--r--libs/tgl/libevent/strlcpy-internal.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/libs/tgl/libevent/strlcpy-internal.h b/libs/tgl/libevent/strlcpy-internal.h
new file mode 100644
index 0000000000..cfc27ec662
--- /dev/null
+++ b/libs/tgl/libevent/strlcpy-internal.h
@@ -0,0 +1,22 @@
+#ifndef STRLCPY_INTERNAL_H_INCLUDED_
+#define STRLCPY_INTERNAL_H_INCLUDED_
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#include "event2/event-config.h"
+#include "evconfig-private.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
+