Commit e1418249 authored by Daniel Pfeifer's avatar Daniel Pfeifer
Browse files

Modernize deprecated headers

Replace C standard library headers in C++ code with their C++
alternatives.
parent ebc28c15
......@@ -3,8 +3,8 @@
#include "cmCPackIFWInstaller.h"
#include <cmConfigure.h>
#include <cstddef>
#include <sstream>
#include <stddef.h>
#include <utility>
#include "CPack/cmCPackGenerator.h"
......
......@@ -13,9 +13,9 @@
#include "cmXMLWriter.h"
#include <cmConfigure.h>
#include <cstddef>
#include <map>
#include <sstream>
#include <stddef.h>
//----------------------------------------------------------------- Logger ---
#ifdef cmCPackLogger
......
......@@ -10,7 +10,7 @@
#include "cmXMLWriter.h"
#include <cmConfigure.h>
#include <stddef.h>
#include <cstddef>
#ifdef cmCPackLogger
#undef cmCPackLogger
......
......@@ -3,8 +3,8 @@
#include <cmsys/FStream.hxx>
#include <cmsys/Process.h>
#include <cmsys/SystemTools.hxx>
#include <cstddef>
#include <iostream>
#include <stddef.h>
#include <string>
#include <vector>
......
......@@ -9,13 +9,13 @@
#include "cmGeneratedFileStream.h"
#include "cmSystemTools.h"
#include <climits>
#include <cmsys/Glob.hxx>
#include <limits.h>
#include <cstdio>
#include <cstring>
#include <map>
#include <ostream>
#include <set>
#include <stdio.h>
#include <string.h>
#include <sys/stat.h>
#include <utility>
......
......@@ -9,9 +9,9 @@
#include <cmsys/FStream.hxx>
#include <cmsys/RegularExpression.hxx>
#include <cstdlib>
#include <iomanip>
#include <map>
#include <stdlib.h>
#include <CoreFoundation/CoreFoundation.h>
......
......@@ -4,8 +4,8 @@
#define cmCPackDragNDropGenerator_h
#include <cmConfigure.h>
#include <cstddef>
#include <sstream>
#include <stddef.h>
#include <string>
#include <vector>
......
......@@ -5,8 +5,8 @@
#include <cmConfigure.h> // IWYU pragma: keep
#include <cstring>
#include <ostream>
#include <string.h>
#include <string>
#define cmCPack_Log(ctSelf, logType, msg) \
......
......@@ -11,10 +11,10 @@
#include <algorithm>
#include <cmsys/Directory.hxx>
#include <cmsys/RegularExpression.hxx>
#include <cstdlib>
#include <cstring>
#include <map>
#include <sstream>
#include <stdlib.h>
#include <string.h>
#include <utility>
/* NSIS uses different command line syntax on Windows and others */
......
......@@ -2,13 +2,13 @@
file Copyright.txt or https://cmake.org/licensing for details. */
#include "cmCPackPackageMakerGenerator.h"
#include <assert.h>
#include <cassert>
#include <cmsys/FStream.hxx>
#include <cmsys/RegularExpression.hxx>
#include <cstdio>
#include <cstdlib>
#include <map>
#include <sstream>
#include <stdio.h>
#include <stdlib.h>
#include <string>
#include "cmCPackComponentGroup.h"
......
......@@ -2,9 +2,9 @@
file Copyright.txt or https://cmake.org/licensing for details. */
#include "cmCPackProductBuildGenerator.h"
#include <cstddef>
#include <map>
#include <sstream>
#include <stddef.h>
#include "cmCPackComponentGroup.h"
#include "cmCPackLog.h"
......
......@@ -3,7 +3,7 @@
#include "cmCPackRPMGenerator.h"
#include <algorithm>
#include <ctype.h>
#include <cctype>
#include <map>
#include <ostream>
#include <utility>
......
......@@ -3,8 +3,8 @@
#include "cmCPackSTGZGenerator.h"
#include <cmsys/FStream.hxx>
#include <cstdio>
#include <sstream>
#include <stdio.h>
#include <string>
#include <vector>
......
......@@ -4,10 +4,10 @@
#include <cmsys/CommandLineArguments.hxx>
#include <cmsys/Encoding.hxx>
#include <cstddef>
#include <iostream>
#include <map>
#include <sstream>
#include <stddef.h>
#include <string>
#include <utility>
#include <vector>
......
......@@ -10,10 +10,10 @@
#include <cm_expat.h>
#include <cmsys/RegularExpression.hxx>
#include <cstdlib>
#include <list>
#include <map>
#include <ostream>
#include <stdlib.h>
#include <vector>
extern "C" int cmBZRXMLParserUnknownEncodingHandler(void* /*unused*/,
......
......@@ -9,7 +9,7 @@
#include "cmake.h"
#include <cmsys/Process.h>
#include <stdlib.h>
#include <cstdlib>
cmCTestBuildAndTestHandler::cmCTestBuildAndTestHandler()
{
......
......@@ -7,8 +7,8 @@
#include "cmCTestGenericHandler.h"
#include <cstddef>
#include <sstream>
#include <stddef.h>
#include <string>
#include <vector>
......
......@@ -10,8 +10,8 @@
#include "cmSystemTools.h"
#include "cmake.h"
#include <cstring>
#include <sstream>
#include <string.h>
class cmExecutionStatus;
......
......@@ -14,9 +14,9 @@
#include <cmsys/Directory.hxx>
#include <cmsys/FStream.hxx>
#include <cmsys/Process.h>
#include <cstdlib>
#include <cstring>
#include <set>
#include <stdlib.h>
#include <string.h>
static const char* cmCTestErrorMatches[] = {
"^[Bb]us [Ee]rror",
......
......@@ -9,9 +9,9 @@
#include <cmProcessOutput.h>
#include <cmsys/RegularExpression.hxx>
#include <cstddef>
#include <deque>
#include <iosfwd>
#include <stddef.h>
#include <string>
#include <vector>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment