X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/63dcc736df5d963de1df494452cdc5cd91ea0d21..a78d2fbab115b4c6537349fb06275d1610bf4aa0:/src/msw/gdiplus.cpp diff --git a/src/msw/gdiplus.cpp b/src/msw/gdiplus.cpp index fa3717bc46..df688b1135 100644 --- a/src/msw/gdiplus.cpp +++ b/src/msw/gdiplus.cpp @@ -734,6 +734,16 @@ wxFOR_ALL_GDIPLUS_STATUS_FUNCS(wxDECL_GDIPLUS_FUNC_TYPE) } // extern "C" +// Special hack for Cygwin: its headers reference this variable which is +// normally defined in Cygwin-specific gdiplus.lib but as we don't link with it +// and load gdiplus.dll dynamically, it's not defined in our case resulting in +// linking errors -- so just provide it ourselves, it doesn't matter where it +// is and if Cygwin headers are modified to not use it in the future, it's not +// a big deal neither, we'll just have an unused pointer. +#ifdef __CYGWIN__ +extern "C" void *_GdipStringFormatCachedGenericTypographic = NULL; +#endif // __CYGWIN__ + // ============================================================================ // wxGdiPlus helper class // ============================================================================