xref: /freebsd/contrib/ntp/sntp/libevent/strlcpy-internal.h (revision ccfd87fe2ac0e2e6aeb1911a7d7cce6712a8564f)
1 #ifndef STRLCPY_INTERNAL_H_INCLUDED_
2 #define STRLCPY_INTERNAL_H_INCLUDED_
3 
4 #ifdef __cplusplus
5 extern "C" {
6 #endif
7 
8 #include "event2/event-config.h"
9 #include "event2/visibility.h"
10 #include "evconfig-private.h"
11 
12 #ifndef EVENT__HAVE_STRLCPY
13 #include <string.h>
14 EVENT2_EXPORT_SYMBOL
15 size_t event_strlcpy_(char *dst, const char *src, size_t siz);
16 #define strlcpy event_strlcpy_
17 #endif
18 
19 #ifdef __cplusplus
20 }
21 #endif
22 
23 #endif
24 
25