freetype-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[freetype2-demos] master 3d1095e 3/4: * src/ftpngout.c: Remove compiler


From: Werner Lemberg
Subject: [freetype2-demos] master 3d1095e 3/4: * src/ftpngout.c: Remove compiler warning for Mingw64 toolchain.
Date: Wed, 26 May 2021 09:50:29 -0400 (EDT)

branch: master
commit 3d1095e630681508c365f25c75e9927ddc52e7ba
Author: David Turner <david@freetype.org>
Commit: David Turner <david.turner.dev@gmail.com>

    * src/ftpngout.c: Remove compiler warning for Mingw64 toolchain.
    
    The #pragma statement is only valid with Microsoft Visual C++
---
 ChangeLog      | 6 ++++++
 src/ftpngout.c | 3 +++
 2 files changed, 9 insertions(+)

diff --git a/ChangeLog b/ChangeLog
index 87ebffb..74da122 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
 2021-05-23  David Turner  <david@freetype.org>
 
+        * src/ftpngout.c: Remove compiler warning for Mingw64 toolchain.
+
+        The #pragma statement is only valid with Microsoft Visual C++
+
+2021-05-23  David Turner  <david@freetype.org>
+
         * graph/win32/grwin32.c: Fix compiler warnings
 
         - Redefine the LCS_sRGB macro to properly compile with the Mingw64
diff --git a/src/ftpngout.c b/src/ftpngout.c
index 137a186..c003425 100644
--- a/src/ftpngout.c
+++ b/src/ftpngout.c
@@ -147,7 +147,10 @@
 #define WIN32_LEAN_AND_MEAN
 #include<windows.h>
 
+/* Microsoft Visual C++ specific pragma */
+#ifdef _MSC_VER
 #pragma comment (lib,"Gdiplus.lib")
+#endif
 
  /* Barebone definitions and opaque types to avoid GDI+ (C++) headers */
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]