<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">From 238e35320218b0bc319a0bc10387e66360431721 Mon Sep 17 00:00:00 2001
From: Jeremy Huddleston Sequoia &lt;jeremyhu@apple.com&gt;
Date: Sat, 17 Jan 2015 16:26:20 -0800
Subject: [PATCH 3004/3005] Fix missing long long math prototypes when using
 the Snow Leopard SDK

Signed-off-by: Jeremy Huddleston Sequoia &lt;jeremyhu@apple.com&gt;
(cherry picked from commit afdc64a717d3b284f920944146952bcbbc111cd0)
---
 include/cmath | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git llvm_release_34/projects/libcxx/include/cmath macports_release_34/projects/libcxx/include/cmath
index 75087ae..12da454 100644
--- llvm_release_34/projects/libcxx/include/cmath
+++ macports_release_34/projects/libcxx/include/cmath
@@ -301,6 +301,22 @@ long double    truncl(long double x);
 #include &lt;math.h&gt;
 #include &lt;type_traits&gt;
 
+#ifdef __APPLE__
+#include &lt;Availability.h&gt;
+#if __MAC_OS_X_VERSION_MAX_ALLOWED &lt; 1070
+/* These prototypes are incorrectly omitted from &lt;math.h&gt; on Snow Leopard despite being available */
+extern "C" {
+    extern long long int llrintl(long double);
+    extern long long int llrint(double);
+    extern long long int llrintf(float);
+
+    extern long long int llroundl(long double);
+    extern long long int llround(double);
+    extern long long int llroundf(float);
+}
+#endif
+#endif // __APPLE__
+
 #ifdef _LIBCPP_MSVCRT
 #include "support/win32/math_win32.h"
 #endif
-- 
2.2.2

</pre></body></html>