[libcxx] r224057 - Fix platform_support.h's get_temp_file_name() on Newlib under __STRICT_ANSI__
Jonathan Roelofs
jonathan at codesourcery.com
Thu Dec 11 12:56:40 PST 2014
Author: jroelofs
Date: Thu Dec 11 14:56:40 2014
New Revision: 224057
URL: http://llvm.org/viewvc/llvm-project?rev=224057&view=rev
Log:
Fix platform_support.h's get_temp_file_name() on Newlib under __STRICT_ANSI__
Modified:
libcxx/trunk/test/support/platform_support.h
Modified: libcxx/trunk/test/support/platform_support.h
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/support/platform_support.h?rev=224057&r1=224056&r2=224057&view=diff
==============================================================================
--- libcxx/trunk/test/support/platform_support.h (original)
+++ libcxx/trunk/test/support/platform_support.h Thu Dec 11 14:56:40 2014
@@ -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()
More information about the cfe-commits
mailing list