vcpkg/ports/cairo/fix-static-missing-lib-msimg32.patch
Cheney Wang 2578040872
[cairo] Fix missing msimg32.lib in cairo:x64-windows-static (#29044)
* [cairo] Fix missing msimg32.lib in cairo:x64-windows-static

* Remove if guard of new patch

* x-add-version
2023-01-19 12:52:48 -08:00

16 lines
361 B
Diff

diff --git a/src/win32/cairo-win32-private.h b/src/win32/cairo-win32-private.h
index d457b78..0b1b4ed 100644
--- a/src/win32/cairo-win32-private.h
+++ b/src/win32/cairo-win32-private.h
@@ -53,6 +53,10 @@
#define WIN32_FONT_LOGICAL_SCALE 32
+#ifdef _MSC_VER
+#pragma comment(lib, "MSImg32.Lib")
+#endif
+
CAIRO_BEGIN_DECLS
/* Surface DC flag values */