Fix Savannah bug #40451. Simply apply the patch from the bug report. * builds/unix/ftconfig.in, builds/vms/ftconfig.h, include/freetype/config/ftconfig.h: The used #pragma directives only work with gcc versions 4.6 and higher.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93
diff --git a/ChangeLog b/ChangeLog
index 75cec51..dc327ec 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2013-11-02 Werner Lemberg <wl@gnu.org>
+
+ Fix Savannah bug #40451.
+
+ Simply apply the patch from the bug report.
+
+ * builds/unix/ftconfig.in, builds/vms/ftconfig.h,
+ include/freetype/config/ftconfig.h: The used #pragma directives only
+ work with gcc versions 4.6 and higher.
+
2013-11-01 Werner Lemberg <wl@gnu.org>
* docs/CHANGES: Updated.
diff --git a/builds/unix/ftconfig.in b/builds/unix/ftconfig.in
index 1753a6e..9919cd9 100644
--- a/builds/unix/ftconfig.in
+++ b/builds/unix/ftconfig.in
@@ -520,8 +520,10 @@ FT_BEGIN_HEADER
{
/* Temporarily disable the warning that C90 doesn't support */
/* `long long'. */
+#if ( __GNUC__ > 4 ) || ( ( __GNUC__ == 4 ) && ( __GNUC_MINOR__ >= 6 ) )
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wlong-long"
+#endif
#if 1
/* Technically not an assembly fragment, but GCC does a really good */
@@ -560,7 +562,9 @@ FT_BEGIN_HEADER
return (FT_Int32)result;
#endif
+#if ( __GNUC__ > 4 ) || ( ( __GNUC__ == 4 ) && ( __GNUC_MINOR__ >= 6 ) )
#pragma GCC diagnostic pop
+#endif
}
#endif /* __GNUC__ && __x86_64__ */
diff --git a/builds/vms/ftconfig.h b/builds/vms/ftconfig.h
index 9ac10f3..9a06624 100644
--- a/builds/vms/ftconfig.h
+++ b/builds/vms/ftconfig.h
@@ -456,8 +456,10 @@ FT_BEGIN_HEADER
{
/* Temporarily disable the warning that C90 doesn't support */
/* `long long'. */
+#if ( __GNUC__ > 4 ) || ( ( __GNUC__ == 4 ) && ( __GNUC_MINOR__ >= 6 ) )
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wlong-long"
+#endif
#if 1
/* Technically not an assembly fragment, but GCC does a really good */
@@ -496,7 +498,9 @@ FT_BEGIN_HEADER
return (FT_Int32)result;
#endif
+#if ( __GNUC__ > 4 ) || ( ( __GNUC__ == 4 ) && ( __GNUC_MINOR__ >= 6 ) )
#pragma GCC diagnostic pop
+#endif
}
#endif /* __GNUC__ && __x86_64__ */
diff --git a/include/freetype/config/ftconfig.h b/include/freetype/config/ftconfig.h
index 1180b12..dd19210 100644
--- a/include/freetype/config/ftconfig.h
+++ b/include/freetype/config/ftconfig.h
@@ -487,8 +487,10 @@ FT_BEGIN_HEADER
{
/* Temporarily disable the warning that C90 doesn't support */
/* `long long'. */
+#if ( __GNUC__ > 4 ) || ( ( __GNUC__ == 4 ) && ( __GNUC_MINOR__ >= 6 ) )
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wlong-long"
+#endif
#if 1
/* Technically not an assembly fragment, but GCC does a really good */
@@ -527,7 +529,9 @@ FT_BEGIN_HEADER
return (FT_Int32)result;
#endif
+#if ( __GNUC__ > 4 ) || ( ( __GNUC__ == 4 ) && ( __GNUC_MINOR__ >= 6 ) )
#pragma GCC diagnostic pop
+#endif
}
#endif /* __GNUC__ && __x86_64__ */