[cfe-commits] r137903 - in /cfe/trunk: include/clang/Basic/Builtins.def include/clang/Basic/DiagnosticSemaKinds.td include/clang/Sema/Sema.h lib/Sema/SemaChecking.cpp test/Sema/warn-strlcpycat-size.c

Benjamin Kramer benny.kra at googlemail.com
Wed Aug 17 19:42:03 PDT 2011


On 17.08.2011, at 19:21, Ted Kremenek wrote:

> I've gone and reverted the change, pending a fix to get it working on Windows.
> 
> I think the crux of the matter is the definition of strlen, strlcpy, and strlcat as built-ins, and that not being compatible with how they are defined on Windows.
> 
> If possible, could you provide me those definitions from Windows?  Thanks.

It's just size_t being int instead of long on windows (and possibly on other platforms)

Using a target neutral typedef for size_t (like "__SIZE_TYPE__" or "__typeof__(sizeof(int))")
should make it work on windows.

- Ben



More information about the cfe-commits mailing list