Rearrange #include directives to pass to compilation with a particular DSP toolchain (#7000)

iomanip isn't available for our DSP. Luckily, we compile with FLATBUFFERS_PREFER_PRINTF, so moved the #include directive there.
ctype.h has to be included explicilty for tolower() and toupper().
This commit is contained in:
Shlomi Regev
2021-12-22 08:40:38 -08:00
committed by GitHub
parent b3edfdbfb7
commit 96f3cf690f

View File

@@ -18,18 +18,19 @@
#define FLATBUFFERS_UTIL_H_
#include <errno.h>
#include <ctype.h>
#include "flatbuffers/base.h"
#include "flatbuffers/stl_emulation.h"
#ifndef FLATBUFFERS_PREFER_PRINTF
# include <sstream>
# include <iomanip>
#else // FLATBUFFERS_PREFER_PRINTF
# include <float.h>
# include <stdio.h>
#endif // FLATBUFFERS_PREFER_PRINTF
#include <iomanip>
#include <string>
namespace flatbuffers {