Edit

kc3-lang/libevent/strlcpy-internal.h

Branch :

  • Show log

    Commit

  • Author : Azat Khuzhin
    Date : 2017-03-13 21:05:32
    Hash : 9806b126
    Message : Merge branch 'cmake-missing-bits' This patchset adds next missing things (in compare to autotools): - pkgconfig - event_pthreads/event_openssl - compile shared/static libraries always And some fixes, because it will not build after fixing other things: - export missing symbols for cmake (-fvisibility=hidden) * cmake-missing-bits: cmake: support visibility for AppleClang too cmake: fix export absolute path and relative path and cleanup a bit cmake: generate and install pkgconfig files cmake: build SHARED and STATIC libraries (like autoconf does) cmake: add missing event_openssl/event_pthreads libraries Export symbols for -fvisibility=hidden (under cmake) Refs: #246 (cherry picked from commit 489991a2b2628ba1ff4e6879b9f67ec35d224c38)

  • strlcpy-internal.h
  • #ifndef STRLCPY_INTERNAL_H_INCLUDED_
    #define STRLCPY_INTERNAL_H_INCLUDED_
    
    #ifdef __cplusplus
    extern "C" {
    #endif
    
    #include "event2/event-config.h"
    #include "event2/visibility.h"
    #include "evconfig-private.h"
    
    #ifndef EVENT__HAVE_STRLCPY
    #include <string.h>
    EVENT2_EXPORT_SYMBOL
    size_t event_strlcpy_(char *dst, const char *src, size_t siz);
    #define strlcpy event_strlcpy_
    #endif
    
    #ifdef __cplusplus
    }
    #endif
    
    #endif