When third_party\WebKit\Source\platform\fonts\WebFontDecoder.cpp #includes third_party/ots/include/ots-memory-stream.h it pulls in opentype-sanitiser.h which causes ntohl, ntohs, htonl and htons to be #defined. Later on, in jumbo builds, when third_party\webkit\source\platform\wtf\byteorder.h is #included this causes problems because byteorder.h tries to define these as functions.
Possible solutions include:
1) #undef these at the end of opentype-sanitiser.h
2) #undef these in WebFontDecoder.cpp after including ots-memory-stream.h
3) Excluded WebFontDecoder.cpp from jumbo builds
Solution #1 is the most long-term stable solution. Thoughts?
Comment 1 by brucedaw...@chromium.org
, Oct 20 2017