]> granicus.if.org Git - graphviz/commitdiff
gdiplus plugin: remove MS Visual Studio 8 patches
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 27 Mar 2022 22:20:58 +0000 (15:20 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Tue, 29 Mar 2022 03:10:32 +0000 (20:10 -0700)
These patches appear to have been working around some non-portable code in the
headers shipped with Microsoft Visual Studio 8 (a.k.a. Microsoft Visual Studio
2005). This version of Visual Studio was EOLed on 2016-04-12. Neither the CMake
nor MS Build build systems (the only CI environments for which compilation of
this plugin is enabled) were using these patches. So apparently they have not
been useful for a long time.

plugin/gdiplus/GdiPlusEnums.h.patch [deleted file]
plugin/gdiplus/GdiPlusHeaders.h.patch [deleted file]
plugin/gdiplus/GdiPlusImaging.h.patch [deleted file]
plugin/gdiplus/GdiPlusimageAttributes.h.patch [deleted file]
plugin/gdiplus/Makefile.am

diff --git a/plugin/gdiplus/GdiPlusEnums.h.patch b/plugin/gdiplus/GdiPlusEnums.h.patch
deleted file mode 100644 (file)
index 602ca88..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
---- /d/Program Files (x86)/Microsoft Visual Studio 8/VC/PlatformSDK/include/GdiPlusEnums.h     Thu Apr 14 16:54:44 2005
-+++ ./GdiPlusEnums.h   Mon Feb 25 17:19:13 2008
-@@ -531,11 +531,9 @@
- // We have to change the WMF record numbers so that they don't conflict with
- // the EMF and EMF+ record numbers.
-
--enum EmfPlusRecordType;
--
- #define GDIP_EMFPLUS_RECORD_BASE        0x00004000
- #define GDIP_WMF_RECORD_BASE            0x00010000
--#define GDIP_WMF_RECORD_TO_EMFPLUS(n)   ((EmfPlusRecordType)((n) | GDIP_WMF_RECORD_BASE))
-+#define GDIP_WMF_RECORD_TO_EMFPLUS(n)   ((n) | GDIP_WMF_RECORD_BASE)
- #define GDIP_EMFPLUS_RECORD_TO_WMF(n)   ((n) & (~GDIP_WMF_RECORD_BASE))
- #define GDIP_IS_WMF_RECORDTYPE(n)       (((n) & GDIP_WMF_RECORD_BASE) != 0)
-
diff --git a/plugin/gdiplus/GdiPlusHeaders.h.patch b/plugin/gdiplus/GdiPlusHeaders.h.patch
deleted file mode 100644 (file)
index 5af7520..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
---- /d/Program Files (x86)/Microsoft Visual Studio 8/VC/PlatformSDK/include/GdiPlusHeaders.h   Thu Apr 14 16:54:44 2005
-+++ ./GdiPlusHeaders.h Mon Feb 25 17:20:22 2008
-@@ -650,7 +650,7 @@
-
- class CachedBitmap : public GdiplusBase
- {
--    friend Graphics;
-+    friend class Graphics;
-
- public:
-     CachedBitmap(IN Bitmap *bitmap,
diff --git a/plugin/gdiplus/GdiPlusImaging.h.patch b/plugin/gdiplus/GdiPlusImaging.h.patch
deleted file mode 100644 (file)
index 73e6abe..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
---- /d/Program Files (x86)/Microsoft Visual Studio 8/VC/PlatformSDK/include/GdiPlusImaging.h   Thu Apr 14 16:54:44 2005
-+++ ./GdiPlusImaging.h Mon Feb 25 17:23:08 2008
-@@ -153,7 +153,7 @@
-     UINT Width;
-     UINT Height;
-     INT Stride;
--    PixelFormat PixelFormat;
-+    Gdiplus::PixelFormat PixelFormat;
-     VOID* Scan0;
-     UINT_PTR Reserved;
- };
diff --git a/plugin/gdiplus/GdiPlusimageAttributes.h.patch b/plugin/gdiplus/GdiPlusimageAttributes.h.patch
deleted file mode 100644 (file)
index 46d3eb4..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
---- /d/Program Files (x86)/Microsoft Visual Studio 8/VC/PlatformSDK/include/GdiPlusimageAttributes.h   Thu Apr 14 16:54:44 2005
-+++ ./GdiPlusimageAttributes.h Mon Feb 25 17:21:58 2008
-@@ -231,8 +231,8 @@
-                                             nativeImageAttr,
-                                             type,
-                                             FALSE,
--                                            NULL,
--                                            NULL));
-+                                            (ARGB)0,
-+                                            (ARGB)0));
-     }
-
-     Status SetOutputChannel(
index 8a9794553ad5dcc128d0c77d12a410345b9c8f8b..754c2eaa34b80f46d1d3ebeccb65da0f16767afb 100644 (file)
@@ -9,8 +9,6 @@ AM_CPPFLAGS = \
        -I$(top_srcdir)/lib/cdt
 
 if WITH_GDIPLUS
-PATCHES = GdiPlusEnums.h.patch GdiPlusHeaders.h.patch GdiPlusimageAttributes.h.patch GdiPlusImaging.h.patch
-PATCHED_HEADS = $(PATCHES:.h.patch=.h)
 
 noinst_LTLIBRARIES = libgvplugin_gdiplus_C.la
 if WITH_WIN32
@@ -45,25 +43,4 @@ if WITH_DARWIN9
 libgvplugin_gdiplus_la_LDFLAGS += -Wl,-exported_symbol,_gvplugin_gdiplus_LTX_library
 endif
 
-# object code is dependent on all the local GDI+ headers
-
-gvdevice_gdiplus.lo : $(GDIPLUS_HEADS)
-
-gvloadimage_gdiplus.lo : $(GDIPLUS_HEADS)
-
-gvrender_gdiplus.lo : $(GDIPLUS_HEADS)
-
-if WITH_GDIPLUS
-# patched GDI+ headers are dependent on the patches
-$(PATCHED_HEADS) : %.h : %.h.patch
-
-# all the local GDI+ headers are dependent on the originals in PlatformSDK
-# if the GDI+ header needs to be patched, patch it, else just copy it over
-$(GDIPLUS_HEADS) : %.h : $(PLATFORMSDKINCLUDE_ESCAPED)/%.h
-       if expr "$(PATCHED_HEADS)" : '.*$*.h' >/dev/null 2>&1; \
-       then patch -o $*.h "$(PLATFORMSDKINCLUDE)\$*.h" $*.h.patch; \
-       else cp "$(PLATFORMSDKINCLUDE)\$*.h" $*.h; \
-       fi
-endif
-
-EXTRA_DIST = $(PATCHES) gvplugin_gdiplus.vcxproj*
+EXTRA_DIST = gvplugin_gdiplus.vcxproj*