error.cpp pulled <cstdlib>, <type_traits>, and (on Windows) windows_headers.h, none of which it actually uses: - <cstdlib>: no std::malloc / abort / exit / etc. - <type_traits>: no is_*, conditional, enable_if, etc. - windows_headers.h: no HRESULT / HANDLE / Win32 API at all. What it does use is std::va_list and the va_start/va_end macros (in SetFormattedMessage). Those were getting in via a transitive include - drop the dead headers, add <cstdarg> explicitly so the TU's stated dependencies match the symbols it actually touches. No behaviour change. Build clean on Makefile.libretro platform=unix. |
||
|---|---|---|
| .. | ||
| common | ||
| core | ||
| libretro | ||
| CMakeLists.txt | ||
| config.h.cmake | ||