shithub: freetype+ttf2subf

Download patch

ref: 35b081898694db8f7865d561ff8cc598a4fe9965
parent: afa0d59ee53561ecbbc3c83d56f694491fa31c02
author: Werner Lemberg <[email protected]>
date: Sat Nov 2 04:28:41 EDT 2013

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.

git/fs: mount .git/fs: mount/attach disallowed
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2013-11-02  Werner Lemberg  <[email protected]>
+
+	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  <[email protected]>
 
 	* docs/CHANGES: Updated.
--- a/builds/unix/ftconfig.in
+++ b/builds/unix/ftconfig.in
@@ -520,8 +520,10 @@
   {
     /* 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 @@
     return (FT_Int32)result;
 #endif
 
+#if ( __GNUC__ > 4 ) || ( ( __GNUC__ == 4 ) && ( __GNUC_MINOR__ >= 6 ) )
 #pragma GCC diagnostic pop
+#endif
   }
 
 #endif /* __GNUC__ && __x86_64__ */
--- a/builds/vms/ftconfig.h
+++ b/builds/vms/ftconfig.h
@@ -456,8 +456,10 @@
   {
     /* 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 @@
     return (FT_Int32)result;
 #endif
 
+#if ( __GNUC__ > 4 ) || ( ( __GNUC__ == 4 ) && ( __GNUC_MINOR__ >= 6 ) )
 #pragma GCC diagnostic pop
+#endif
   }
 
 #endif /* __GNUC__ && __x86_64__ */
--- a/include/freetype/config/ftconfig.h
+++ b/include/freetype/config/ftconfig.h
@@ -487,8 +487,10 @@
   {
     /* 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 @@
     return (FT_Int32)result;
 #endif
 
+#if ( __GNUC__ > 4 ) || ( ( __GNUC__ == 4 ) && ( __GNUC_MINOR__ >= 6 ) )
 #pragma GCC diagnostic pop
+#endif
   }
 
 #endif /* __GNUC__ && __x86_64__ */