replace stdint.h with cstdint

The former is deprecated by C++14. The standard says they are the same:

The header defines all types and macros the same as the C standard library
header<stdint.h>.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
Rosen Penev
2020-03-12 17:08:53 -07:00
parent 2db8bcc353
commit a2f5a63bbc
85 changed files with 88 additions and 113 deletions
+1 -2
View File
@@ -30,8 +30,7 @@
#endif
#include <chrono>
#include <stdint.h>
#include <cstdint>
class FileInfo {
friend bool GetFileInfo(Path path, FileInfo &info,
+1 -1
View File
@@ -31,9 +31,9 @@
#include "Reader.hxx"
#include "util/TextFile.hxx"
#include <cstdint>
#include <stdexcept>
#include <stdint.h>
#include <string.h>
bool
+1 -2
View File
@@ -39,8 +39,7 @@
#endif
#include <cassert>
#include <stdint.h>
#include <cstdint>
#ifdef _WIN32
#include <windows.h>
+1 -1
View File
@@ -22,7 +22,7 @@
#include "Reader.hxx"
#include <stdint.h>
#include <cstdint>
/**
* A filter that allows the caller to peek the first few bytes without