Fix missing includes in fmt.cc (#3994)

This causes duplicated std definitions in the fmt module
This commit is contained in:
LoveSy
2024-06-08 13:50:29 -07:00
committed by GitHub
parent a3d95971be
commit 0f6e716548
4 changed files with 14 additions and 5 deletions
+6 -3
View File
@@ -8,9 +8,12 @@
#ifndef FMT_BASE_H_
#define FMT_BASE_H_
#include <limits.h> // CHAR_BIT
#include <stdio.h> // FILE
#include <string.h> // strlen
// c headers are preferable for performance reasons
#ifndef FMT_MODULE
# include <limits.h> // CHAR_BIT
# include <stdio.h> // FILE
# include <string.h> // strlen
#endif
#ifndef FMT_IMPORT_STD
// <cstddef> is also included transitively from <type_traits>.