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

From: Szabolcs Nagy <nsz_AT_port70.net>
Date: Thu, 30 Jan 2014 21:01:59 +0100

* 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);
Received on Thu Jan 30 2014 - 21:01:59 CET

This archive was generated by hypermail 2.3.0 : Thu Jan 30 2014 - 21:12:13 CET