This repository has been archived on 2026-01-16. You can view files and clone it, but you cannot make any changes to its state, such as pushing and creating new issues, pull requests or comments.
adobe-source-libraries/asl-gcc5.patch
2015-08-20 17:29:30 +02:00

26 lines
711 B
Diff

--- source_release/adobe/cmath.hpp~ 2015-08-05 12:10:17.637727832 +0100
+++ source_release/adobe/cmath.hpp 2015-08-05 12:24:28.811279909 +0100
@@ -36,19 +36,12 @@
#define ADOBE_HAS_CPP_CMATH
-#elif __GNUC__ == 4
-#if (__GNUC_MINOR__ < 6) || (!(defined(_GLIBCXX_USE_C99_MATH_TR1)))
-// at least Ubuntu 9.x, gcc 4.4.1, still falls into this case
-/*
- The currently supported version of GNUC has C99 extensions in math.h. But no TR1 extensions.
-*/
+#elif __GNUC__ >= 4
+
+// GNUC has C99 extensions in math.h but not in <cmath> until C++11.
#define ADOBE_HAS_C99_MATH_H
#include <cmath>
-#else
-#include <tr1/cmath>
-s
-#define ADOBE_HAS_C99_STD_MATH_H
-#endif
+
#endif
#elif defined(_MSC_VER)