-
rniwa@webkit.org authored
https://bugs.webkit.org/show_bug.cgi?id=114752 Reviewed by Anders Carlsson. We can't use C++ style (//) comments in Platform.h because WebKit2/DerivedSource.make doesn't know how to strip it to be merged with *.sb.in to generate *.sb files. Specifically, we have: # Some versions of clang incorrectly strip out // comments in c89 code. # Use -traditional as a workaround, but only when needed since that causes # other problems with later versions of clang. ifeq ($(shell echo '//x' | $(CC) -E -P -x c -std=c89 - | grep x),) TEXT_PREPROCESSOR_FLAGS=-E -P -x c -traditional -w else TEXT_PREPROCESSOR_FLAGS=-E -P -x c -std=c89 -w endif * wtf/Platform.h: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@148625 268f45cc-cd09-0410-ab3c-d52691b4dbfc
7cc04e3c