ipc/chromium/src/third_party/libevent/strlcpy-internal.h

Fri, 16 Jan 2015 04:50:19 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Fri, 16 Jan 2015 04:50:19 +0100
branch
TOR_BUG_9701
changeset 13
44a2da4a2ab2
permissions
-rw-r--r--

Replace accessor implementation with direct member state manipulation, by
request https://trac.torproject.org/projects/tor/ticket/9701#comment:32

     1 #ifndef _STRLCPY_INTERNAL_H_
     2 #define _STRLCPY_INTERNAL_H_
     4 #ifdef __cplusplus
     5 extern "C" {
     6 #endif
     8 #include "event2/event-config.h"
    10 #ifndef _EVENT_HAVE_STRLCPY
    11 #include <string.h>
    12 size_t _event_strlcpy(char *dst, const char *src, size_t siz);
    13 #define strlcpy _event_strlcpy
    14 #endif
    16 #ifdef __cplusplus
    17 }
    18 #endif
    20 #endif

mercurial