Commit d5d9b5b3 authored by Felix Paul Kühne's avatar Felix Paul Kühne

strnlen: export its VLC pendant properly and check its existance in cc.c....

strnlen: export its VLC pendant properly and check its existance in cc.c. Fixes the compilation onDarwin
parent 32a40b60
...@@ -824,6 +824,7 @@ VLC_EXPORT( size_t, vlc_strlcpy, ( char *, const char *, size_t ) ); ...@@ -824,6 +824,7 @@ VLC_EXPORT( size_t, vlc_strlcpy, ( char *, const char *, size_t ) );
VLC_EXPORT( double, vlc_atof, ( const char *nptr ) ); VLC_EXPORT( double, vlc_atof, ( const char *nptr ) );
VLC_EXPORT( int64_t, vlc_atoll, ( const char *nptr ) ); VLC_EXPORT( int64_t, vlc_atoll, ( const char *nptr ) );
VLC_EXPORT( int64_t, vlc_strtoll, ( const char *nptr, char **endptr, int base ) ); VLC_EXPORT( int64_t, vlc_strtoll, ( const char *nptr, char **endptr, int base ) );
VLC_EXPORT( size_t, vlc_strnlen, ( const char *, size_t ) );
#if defined(SYS_BEOS) \ #if defined(SYS_BEOS) \
|| (defined (__FreeBSD__) && (__FreeBSD__ < 5)) || (defined (__FreeBSD__) && (__FreeBSD__ < 5))
......
...@@ -51,6 +51,10 @@ ...@@ -51,6 +51,10 @@
#include <errno.h> #include <errno.h>
#include <string.h> #include <string.h>
#if !defined( strnlen )
#define strnlen vlc_strnlen
#endif
/***************************************************************************** /*****************************************************************************
* Module descriptor. * Module descriptor.
*****************************************************************************/ *****************************************************************************/
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment