Files
macports-ports/textproc/tinyxml/files/patch-tinyxml.h.diff
T
2026-02-07 23:27:54 -05:00

21 lines
489 B
Diff

--- tinyxml.h.orig 2011-05-14 20:24:57
+++ tinyxml.h 2026-02-04 17:20:26
@@ -26,6 +26,17 @@
#ifndef TINYXML_INCLUDED
#define TINYXML_INCLUDED
+/*
+MacPorts patch:
+If we are going to hard code TIXML_USE_STL in the header file,
+then respect previous definitions in packages that define their own.
+Also stop floods of "macro redefined" warnings.
+*/
+
+#ifndef TIXML_USE_STL
+#define TIXML_USE_STL
+#endif
+
#ifdef _MSC_VER
#pragma warning( push )
#pragma warning( disable : 4530 )