Use C++ headers
This commit is contained in:
parent
2a9e8b52de
commit
d54974c4cc
@ -10,7 +10,7 @@
|
|||||||
|
|
||||||
#include "format.h"
|
#include "format.h"
|
||||||
|
|
||||||
#include <string.h>
|
#include <cstring>
|
||||||
|
|
||||||
#include <cctype>
|
#include <cctype>
|
||||||
#include <cerrno>
|
#include <cerrno>
|
||||||
|
|||||||
@ -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>
|
||||||
|
|
||||||
|
|||||||
@ -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>
|
||||||
|
|
||||||
|
|||||||
@ -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>
|
||||||
|
|||||||
@ -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>
|
||||||
|
|||||||
@ -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>
|
||||||
|
|||||||
@ -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>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user