summaryrefslogtreecommitdiffstats
path: root/libcxx/include/__bsd_locale_fallbacks.h
diff options
context:
space:
mode:
authorEric Fiselier <eric@efcs.ca>2017-08-03 02:50:43 +0000
committerEric Fiselier <eric@efcs.ca>2017-08-03 02:50:43 +0000
commit6e63d8fb8299c8125e9f71853196566ee0afc6ba (patch)
tree4022d560f163aab01dd4253494f9eda510b92ace /libcxx/include/__bsd_locale_fallbacks.h
parent86b875fc088eea7ff09a455ae49db772fcd2c17b (diff)
downloadbcm5719-llvm-6e63d8fb8299c8125e9f71853196566ee0afc6ba.tar.gz
bcm5719-llvm-6e63d8fb8299c8125e9f71853196566ee0afc6ba.zip
Add system header pragma to BSD locale fallback headers.
This prevent leaking warnings to the user about use of C++11 extensions in C++03. llvm-svn: 309917
Diffstat (limited to 'libcxx/include/__bsd_locale_fallbacks.h')
-rw-r--r--libcxx/include/__bsd_locale_fallbacks.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/libcxx/include/__bsd_locale_fallbacks.h b/libcxx/include/__bsd_locale_fallbacks.h
index 9489452905c..5e9e0948307 100644
--- a/libcxx/include/__bsd_locale_fallbacks.h
+++ b/libcxx/include/__bsd_locale_fallbacks.h
@@ -18,6 +18,10 @@
#include <stdarg.h>
#include <memory>
+#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
+#pragma GCC system_header
+#endif
+
_LIBCPP_BEGIN_NAMESPACE_STD
inline _LIBCPP_ALWAYS_INLINE
OpenPOWER on IntegriCloud