Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(12)

Side by Side Diff: base/third_party/libevent/strlcpy-internal.h

Issue 1531573008: move libevent into base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix shim path Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « base/third_party/libevent/strlcpy.c ('k') | base/third_party/libevent/test/Makefile.am » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #ifndef _STRLCPY_INTERNAL_H_ 1 #ifndef _STRLCPY_INTERNAL_H_
2 #define _STRLCPY_INTERNAL_H_ 2 #define _STRLCPY_INTERNAL_H_
3 3
4 #ifdef __cplusplus 4 #ifdef __cplusplus
5 extern "C" { 5 extern "C" {
6 #endif 6 #endif
7 7
8 #ifdef HAVE_CONFIG_H 8 #ifdef HAVE_CONFIG_H
9 #include "config.h" 9 #include "config.h"
10 #endif /* HAVE_CONFIG_H */ 10 #endif /* HAVE_CONFIG_H */
11 11
12 #ifndef HAVE_STRLCPY 12 #ifndef HAVE_STRLCPY
13 #include <string.h> 13 #include <string.h>
14 size_t _event_strlcpy(char *dst, const char *src, size_t siz); 14 size_t _event_strlcpy(char *dst, const char *src, size_t siz);
15 #define strlcpy _event_strlcpy 15 #define strlcpy _event_strlcpy
16 #endif 16 #endif
17 17
18 #ifdef __cplusplus 18 #ifdef __cplusplus
19 } 19 }
20 #endif 20 #endif
21 21
22 #endif 22 #endif
23 23
OLDNEW
« no previous file with comments | « base/third_party/libevent/strlcpy.c ('k') | base/third_party/libevent/test/Makefile.am » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698