6ac840c52c
PCH mode causes the Valgrind-wrapper header to be included in places it is not meant to be used, which leads to spurious compiler errors. PCH mode causes the Valgrind-wrapper __real_* stub functions to see the physfsx.h PHYSFS macros, which also causes errors. Fortunately, both cases can be easily fixed. Add preprocessor guards to the Valgrind-wrapper header to cause it to compile out when the PCH phase runs. It has no include guard, so it will be rescanned with the proper macros when the two consuming files are built normally. Modify the Valgrind-wrapper __real_* stub functions to use the standard macro avoidance trick so that they do not call the physfsx.h PHYSFS macros. |
||
---|---|---|
.. | ||
error.cpp | ||
hash.cpp | ||
hmp.cpp | ||
ignorecase.cpp | ||
strutil.cpp | ||
vg-wrap-physfs.h | ||
vgrphys.cpp | ||
vgwphys.cpp |