Hi all!

Today I built xml-security-c from 
https://svn.apache.org/repos/asf/xml/security/trunk/c (Rev. 955520) and I had 
problems with the resulting install. 

Some of the headers lacked include-guards, I have added them and want to share 
this patch with you.

Cheers, Andi


Index: src/transformers/TXFMDocObject.hpp
===================================================================
--- src/transformers/TXFMDocObject.hpp	(revision 955520)
+++ src/transformers/TXFMDocObject.hpp	(working copy)
@@ -25,6 +25,9 @@
  *
  */
 
+#ifndef TXFMDOCOBJECT_INCLUDE
+#define TXFMDOCOBJECT_INCLUDE
+
 #include <xsec/transformers/TXFMBase.hpp>
 #include <xsec/utils/XSECSafeBuffer.hpp>
 #include <xsec/framework/XSECEnv.hpp>
@@ -92,3 +95,4 @@
 	TXFMDocObject();
 };
 
+#endif
Index: src/transformers/TXFMSB.hpp
===================================================================
--- src/transformers/TXFMSB.hpp	(revision 955520)
+++ src/transformers/TXFMSB.hpp	(working copy)
@@ -23,6 +23,9 @@
  *
  */
 
+#ifndef TXFMSB_INCLUDE
+#define TXFMSB_INCLUDE
+
 #include <xsec/transformers/TXFMBase.hpp>
 #include <xsec/utils/XSECSafeBuffer.hpp>
 
@@ -67,3 +70,5 @@
 	TXFMSB();
 };
 
+#endif
+
Index: src/transformers/TXFMXPath.hpp
===================================================================
--- src/transformers/TXFMXPath.hpp	(revision 955520)
+++ src/transformers/TXFMXPath.hpp	(working copy)
@@ -23,6 +23,9 @@
  *
  */
 
+#ifndef TXFMXPATH_INCLUDE
+#define TXFMXPATH_INCLUDE
+
 #include <xsec/transformers/TXFMBase.hpp>
 #include <xsec/utils/XSECSafeBuffer.hpp>
 #include <xsec/canon/XSECC14n20010315.hpp>
@@ -107,3 +110,5 @@
 };
 
 #endif
+
+#endif
Index: src/dsig/DSIGXPathHere.hpp
===================================================================
--- src/dsig/DSIGXPathHere.hpp	(revision 955520)
+++ src/dsig/DSIGXPathHere.hpp	(working copy)
@@ -23,6 +23,9 @@
  *
  */
 
+#ifndef DSIGXPATHHERE_INCLUDE
+#define DSIGXPATHHERE_INCLUDE
+
 #include <xsec/framework/XSECDefs.hpp>
 
 #include <xercesc/util/PlatformUtils.hpp>
@@ -132,6 +135,7 @@
 
 #endif
 
+#endif
 
 
 

Reply via email to