diff options
| -rw-r--r-- | libcxx/test/support/platform_support.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libcxx/test/support/platform_support.h b/libcxx/test/support/platform_support.h index 09bb29a65e4..d8b6be62376 100644 --- a/libcxx/test/support/platform_support.h +++ b/libcxx/test/support/platform_support.h @@ -48,6 +48,13 @@ #include <unistd.h> // close #endif +#if defined(_NEWLIB_VERSION) && defined(__STRICT_ANSI__) +// Newlib provies this, but in the header it's under __STRICT_ANSI__ +extern "C" { + int mkstemp(char*); +} +#endif + inline std::string get_temp_file_name() |

