Narayan Kamath | fc74cb4 | 2017-09-13 12:53:52 +0100 | [diff] [blame] | 1 | #ifndef STRLCPY_INTERNAL_H_INCLUDED_ |
| 2 | #define STRLCPY_INTERNAL_H_INCLUDED_ |
Christopher Wiley | e867981 | 2015-07-01 13:36:18 -0700 | [diff] [blame] | 3 | |
| 4 | #ifdef __cplusplus |
| 5 | extern "C" { |
| 6 | #endif |
| 7 | |
| 8 | #include "event2/event-config.h" |
Haibo Huang | b227967 | 2019-05-31 16:12:39 -0700 | [diff] [blame] | 9 | #include "event2/visibility.h" |
Narayan Kamath | fc74cb4 | 2017-09-13 12:53:52 +0100 | [diff] [blame] | 10 | #include "evconfig-private.h" |
Christopher Wiley | e867981 | 2015-07-01 13:36:18 -0700 | [diff] [blame] | 11 | |
Narayan Kamath | fc74cb4 | 2017-09-13 12:53:52 +0100 | [diff] [blame] | 12 | #ifndef EVENT__HAVE_STRLCPY |
Christopher Wiley | e867981 | 2015-07-01 13:36:18 -0700 | [diff] [blame] | 13 | #include <string.h> |
Haibo Huang | b227967 | 2019-05-31 16:12:39 -0700 | [diff] [blame] | 14 | EVENT2_EXPORT_SYMBOL |
Narayan Kamath | fc74cb4 | 2017-09-13 12:53:52 +0100 | [diff] [blame] | 15 | size_t event_strlcpy_(char *dst, const char *src, size_t siz); |
| 16 | #define strlcpy event_strlcpy_ |
Christopher Wiley | e867981 | 2015-07-01 13:36:18 -0700 | [diff] [blame] | 17 | #endif |
| 18 | |
| 19 | #ifdef __cplusplus |
| 20 | } |
| 21 | #endif |
| 22 | |
| 23 | #endif |
| 24 | |