diff options
author | dkegel@google.com <dkegel@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-09-18 00:08:57 +0000 |
---|---|---|
committer | dkegel@google.com <dkegel@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-09-18 00:08:57 +0000 |
commit | 0fe41aecdbfd97633bda1a892b2f3efb60f1d3ed (patch) | |
tree | 1f42710b6f0e4250bca214f340ab752491f6d20a /third_party/libevent/strlcpy-internal.h | |
parent | 7a89f55023d63bb8d2ffb8d6bec083bd30cd226d (diff) | |
download | chromium_src-0fe41aecdbfd97633bda1a892b2f3efb60f1d3ed.zip chromium_src-0fe41aecdbfd97633bda1a892b2f3efb60f1d3ed.tar.gz chromium_src-0fe41aecdbfd97633bda1a892b2f3efb60f1d3ed.tar.bz2 |
Just import libevent, with minor tweaks as described in README.google
A second changelist will actually use it
Split because otherwise it's hard to review the second part.
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2345 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'third_party/libevent/strlcpy-internal.h')
-rw-r--r-- | third_party/libevent/strlcpy-internal.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/third_party/libevent/strlcpy-internal.h b/third_party/libevent/strlcpy-internal.h new file mode 100644 index 0000000..22b5f61 --- /dev/null +++ b/third_party/libevent/strlcpy-internal.h @@ -0,0 +1,23 @@ +#ifndef _STRLCPY_INTERNAL_H_ +#define _STRLCPY_INTERNAL_H_ + +#ifdef __cplusplus +extern "C" { +#endif + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif /* HAVE_CONFIG_H */ + +#ifndef 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 + |