]> git.ipfire.org Git - thirdparty/ccache.git/commit
Windows define and include restructuring (#492)
authorThomas Otto <thomas.otto@pdv-fs.de>
Sun, 24 Nov 2019 21:27:26 +0000 (22:27 +0100)
committerJoel Rosdahl <joel@rosdahl.net>
Sun, 24 Nov 2019 21:27:26 +0000 (22:27 +0100)
commitc846fcb40f4a415d67665932c6dc0b37b9e9b495
tree9ee9eb8eab72fc5bfce0d769f4cbfea0cd94e644
parentffa82dd89a145b237aa8ca1ee2aab8687387eec0
Windows define and include restructuring (#492)

Set the _WIN32_WINNT macro only once in the generated config.h.

Include <windows.h> only once in system.hpp, unless these includes
are in third party libs - however third party includes themselves
should always be behind internal includes. Therefore also make
system.hpp the first include everywhere.
13 files changed:
src/CacheEntryWriter.hpp
src/CacheFile.hpp
src/Compressor.hpp
src/File.hpp
src/FormatNonstdStringView.hpp
src/NullCompressor.hpp
src/NullDecompressor.hpp
src/ProgressBar.cpp
src/ProgressBar.hpp
src/cleanup.hpp
src/compress.hpp
src/legacy_util.cpp
src/system.hpp