[Webkit-unassigned] [Bug 20410] Compile-failure: undefined token in WebCore/platform/network/curl/FormDataStreamCurl.cpp
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Sat Aug 16 11:25:45 PDT 2008
https://bugs.webkit.org/show_bug.cgi?id=20410
------- Comment #1 from dmacks at netspace.org 2008-08-16 11:25 PDT -------
FormDataStreamCurl.cpp tries to get stdint.h:
#include "config.h"
// We need to define __STDC_LIMIT_MACROS to define SIZE_MAX.
#ifndef __STDC_LIMIT_MACROS
#define __STDC_LIMIT_MACROS
#include <stdint.h>
#undef __STDC_LIMIT_MACROS
#else
#include <stdint.h>
#endif
but tracing the #include jungle, it looks like that's too late, as stdint.h has
already been loaded...
In file included from /usr/include/sys/_endian.h:88,
from /usr/include/ppc/endian.h:107,
from /usr/include/machine/endian.h:30,
from /usr/include/sys/wait.h:182,
from /usr/include/stdlib.h:64,
from ./JavaScriptCore/wtf/FastMalloc.h:25,
from ./WebCore/config.h:77,
from WebCore/platform/network/curl/FormDataStreamCurl.cpp:30
Moving the config.h *after* stdint.h solves it for me (and makes some
sense...load all the system headers before webkit's own stuff. Not sure if that
affects win32, which may do headers differently and/or need local overrides of
standard-on-unix stuff.
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
More information about the webkit-unassigned
mailing list