[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[freetype2-demos] fix-compiler-warnings ff8b6be 3/4: * src/ftpngout.c: R
From: |
Werner Lemberg |
Subject: |
[freetype2-demos] fix-compiler-warnings ff8b6be 3/4: * src/ftpngout.c: Remove compiler warning for Mingw64 toolchain. |
Date: |
Mon, 24 May 2021 07:41:53 -0400 (EDT) |
branch: fix-compiler-warnings
commit ff8b6bed758284a553201e7fa33906c80b0f0243
Author: David Turner <david@freetype.org>
Commit: David Turner <david@freetype.org>
* src/ftpngout.c: Remove compiler warning for Mingw64 toolchain.
The #pragma statement is only valid with Microsoft Visual C++
---
src/ftpngout.c | 3 +++
1 file changed, 3 insertions(+)
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 */
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [freetype2-demos] fix-compiler-warnings ff8b6be 3/4: * src/ftpngout.c: Remove compiler warning for Mingw64 toolchain.,
Werner Lemberg <=