diff options
author | Jonathan Roelofs <jonathan@codesourcery.com> | 2014-12-11 20:56:40 +0000 |
---|---|---|
committer | Jonathan Roelofs <jonathan@codesourcery.com> | 2014-12-11 20:56:40 +0000 |
commit | 963bdd7c0a2d891fbeae22d9e7de47f8a027406e (patch) | |
tree | 3ab066ff1c06e4131b19424db775392d1577a255 | |
parent | 0a14c0ec9dff402f4f4d6605553722b41d4936f8 (diff) | |
download | bcm5719-llvm-963bdd7c0a2d891fbeae22d9e7de47f8a027406e.tar.gz bcm5719-llvm-963bdd7c0a2d891fbeae22d9e7de47f8a027406e.zip |
Fix platform_support.h's get_temp_file_name() on Newlib under __STRICT_ANSI__
llvm-svn: 224057
-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() |