Use C++ headers

This commit is contained in:
Egor Seredin 2019-05-15 12:02:00 +07:00
parent 2a9e8b52de
commit d54974c4cc
7 changed files with 11 additions and 11 deletions

View File

@ -10,7 +10,7 @@
#include "format.h" #include "format.h"
#include <string.h> #include <cstring>
#include <cctype> #include <cctype>
#include <cerrno> #include <cerrno>

View File

@ -13,11 +13,11 @@
# undef __STRICT_ANSI__ # undef __STRICT_ANSI__
#endif #endif
#include <errno.h> #include <cerrno>
#include <fcntl.h> // for O_RDONLY #include <fcntl.h> // for O_RDONLY
#include <locale.h> // for locale_t #include <clocale> // for locale_t
#include <stdio.h> #include <cstdio>
#include <stdlib.h> // for strtod_l #include <cstdlib> // for strtod_l
#include <cstddef> #include <cstddef>

View File

@ -12,7 +12,7 @@
#include "fmt/posix.h" #include "fmt/posix.h"
#include <limits.h> #include <climits>
#include <sys/stat.h> #include <sys/stat.h>
#include <sys/types.h> #include <sys/types.h>

View File

@ -5,7 +5,7 @@
// //
// For the license information refer to format.h. // For the license information refer to format.h.
#include <stdint.h> #include <cstdint>
#include <cctype> #include <cctype>
#include <cfloat> #include <cfloat>
#include <climits> #include <climits>

View File

@ -13,7 +13,7 @@
#include "posix-mock.h" #include "posix-mock.h"
#include "../src/posix.cc" #include "../src/posix.cc"
#include <errno.h> #include <cerrno>
#include <fcntl.h> #include <fcntl.h>
#include <climits> #include <climits>
#include <memory> #include <memory>

View File

@ -8,8 +8,8 @@
#ifndef FMT_POSIX_TEST_H #ifndef FMT_POSIX_TEST_H
#define FMT_POSIX_TEST_H #define FMT_POSIX_TEST_H
#include <errno.h> #include <cerrno>
#include <stdio.h> #include <cstdio>
#ifdef _WIN32 #ifdef _WIN32
# include <windows.h> # include <windows.h>

View File

@ -5,7 +5,7 @@
// //
// For the license information refer to prepare.h. // For the license information refer to prepare.h.
#include <stdint.h> #include <cstdint>
#include <cctype> #include <cctype>
#include <cfloat> #include <cfloat>
#include <climits> #include <climits>