diff options
| author | Sergei Trofimovich <slyfox@gentoo.org> | 2020-03-05 21:06:27 +0000 |
|---|---|---|
| committer | Sergei Trofimovich <slyfox@gentoo.org> | 2020-03-05 21:20:34 +0000 |
| commit | 879e8364af5db9488d5ec6ea635ef0dfa42b54ef (patch) | |
| tree | a18421eb27ef4fb88a8124a512749f4fb9c3d43d | |
| parent | 0478ce72f5e0e70770c0ae6737f167169b08bc08 (diff) | |
Source/Core/Core/DSP/DSPTables.cpp: include <cstdio> for sprintf
Without included header build fails on gcc-10 as:
```
[ 52%] Building CXX object Source/Core/Core/CMakeFiles/core.dir/DSP/DSPTables.cpp.o
../../../../Source/Core/Core/DSP/DSPTables.cpp: In function 'const char* DSP::pdname(u16)':
../../../../Source/Core/Core/DSP/DSPTables.cpp:492:3: error: 'sprintf' was not declared in this scope
492 | sprintf(tmpstr, "0x%04x", val);
| ^~~~~~~
```
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
| -rw-r--r-- | Source/Core/Core/DSP/DSPTables.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/Core/Core/DSP/DSPTables.cpp b/Source/Core/Core/DSP/DSPTables.cpp index 30deea113f..fab99f42e6 100644 --- a/Source/Core/Core/DSP/DSPTables.cpp +++ b/Source/Core/Core/DSP/DSPTables.cpp @@ -9,6 +9,7 @@ #include <algorithm> #include <array> #include <cstddef> +#include <cstdio> #include "Common/CommonTypes.h" #include "Common/Logging/Log.h" |
