5c6cd3aaec
When config.h is not included, the build configuration is missing from the translation unit in question. This affects ENABLE_SSL, for one. Also, HttpRequest.hpp depends on LOOLWSD_VERSION, which is defined in config.h. The config.h header must be included in all trasnlation-units, and must be the first include. This is to avoid conflicts and/or mismatching binaries built with different compile-time values. We also statically assert if LOOLWSD_VERSION is not defined, to help the error message. Change-Id: Ic4b45de879f3360a07e9507fdf04abfa4cec6a71 Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk> |
||
---|---|---|
.. | ||
data | ||
.gitignore | ||
countloolkits.hpp | ||
DeltaTests.cpp | ||
fakesockettest.cpp | ||
helpers.hpp | ||
httpcrashtest.cpp | ||
HttpRequestTests.cpp | ||
HttpWhiteBoxTests.cpp | ||
httpwstest.cpp | ||
integration-http-server.cpp | ||
lokassert.hpp | ||
Makefile.am | ||
run_unit.sh.in | ||
test.cpp | ||
test.hpp | ||
testlog.hpp | ||
TileCacheTests.cpp | ||
TileQueueTests.cpp | ||
UnitAdmin.cpp | ||
UnitBadDocLoad.cpp | ||
UnitCalc.cpp | ||
UnitClient.cpp | ||
UnitClose.cpp | ||
UnitConvert.cpp | ||
UnitCopyPaste.cpp | ||
UnitCursor.cpp | ||
UnitEachView.cpp | ||
UnitFuzz.cpp | ||
UnitHosting.cpp | ||
UnitHTTP.cpp | ||
UnitInsertDelete.cpp | ||
UnitLargePaste.cpp | ||
UnitLoad.cpp | ||
UnitLoadTorture.cpp | ||
UnitOAuth.cpp | ||
UnitOOB.cpp | ||
UnitPasswordProtected.cpp | ||
UnitPaste.cpp | ||
UnitPrefork.cpp | ||
UnitRenderingOptions.cpp | ||
UnitRenderShape.cpp | ||
UnitSession.cpp | ||
UnitStorage.cpp | ||
UnitTiffLoad.cpp | ||
UnitTileCache.cpp | ||
UnitTimeout.cpp | ||
UnitTyping.cpp | ||
UnitUNOCommand.cpp | ||
UnitWOPI.cpp | ||
UnitWOPIDocumentConflict.cpp | ||
UnitWOPIFileUrl.cpp | ||
UnitWOPIHttpHeaders.cpp | ||
UnitWOPILoadEncoded.cpp | ||
UnitWopiOwnertermination.cpp | ||
UnitWOPIRenameFile.cpp | ||
UnitWOPISaveAs.cpp | ||
UnitWOPITemplate.cpp | ||
UnitWOPIVersionRestore.cpp | ||
UnitWOPIWatermark.cpp | ||
WhiteBoxTests.cpp | ||
WopiProofTests.cpp | ||
WopiTestServer.hpp |