Re: [dev] [sbase] [patch] Add strlcpy()/strlcat() + refactor recurse()

From: sin <sin_AT_2f30.org>
Date: Thu, 30 Jan 2014 20:35:27 +0000

On Thu, Jan 30, 2014 at 09:01:59PM +0100, Szabolcs Nagy wrote:
> * Bobby Powers <bobbypowers_AT_gmail.com> [2014-01-30 09:38:23 -0800]:
> > On MacOS 10.9, strlcat and strncat are defined as macros, and adding
> > them to sbase breaks the builds. I'm not sure what the easy/nice
> > solution is. Error is below.
>
> all standard interfaces may be also defined as macros
> so this is nothing special (eventhough strl* arent standard)
>
> the correc way to declare anything that may appear in a
> standard header is to #undef or protect the declaration like
>
> #undef strlcat
> size_t strlcat(char*,const char*,size_t);
>
> or
>
> size_t (strlcat)(char*,const char*,size_t);

Great, I will try to do that.
Received on Thu Jan 30 2014 - 21:35:27 CET

This archive was generated by hypermail 2.3.0 : Thu Jan 30 2014 - 21:48:03 CET