8367051: Build failure with clang on linux and AIX after switch to C++17

Reviewed-by: dholmes, ayang, mbaesken, mdoerr
This commit is contained in:
Kim Barrett 2025-09-09 15:02:54 +00:00
parent f10c85fbc3
commit b653ae92d5

View File

@ -38,6 +38,15 @@
#include <stdlib.h>
#endif
// Workaround for noexcept functions in glibc when using clang.
// clang errors if declaration without exception specification preceeds
// noexcept declaration, but not the other way around.
#ifdef __clang__
#include <stdio.h>
#include <string.h>
#include <wchar.h>
#endif
#ifdef _WINDOWS
#include "forbiddenFunctions_windows.hpp"
#else