From 7c332783d9047890b7440d3d92d015540b0742bf Mon Sep 17 00:00:00 2001 From: Ewan Mellor Date: Sun, 28 Apr 2013 10:14:40 -0700 Subject: [PATCH] Add a DDXML_NS_DECLARATIONS_ENABLED macro. This allows us to enable the NS* aliases with a preprocessor flag, instead of having to modify the source code. This closes upstream issue #15. The original code was by Robert Payne (robertjpayne). --- KissXML/DDXML.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/KissXML/DDXML.h b/KissXML/DDXML.h index 453de447..7c7afca0 100644 --- a/KissXML/DDXML.h +++ b/KissXML/DDXML.h @@ -21,8 +21,11 @@ #import "DDXMLDocument.h" +#ifndef DDXML_NS_DECLARATIONS_ENABLED +#define DDXML_NS_DECLARATIONS_ENABLED 0 // Disabled by default +#endif -#if TARGET_OS_IPHONE && 0 // Disabled by default +#if TARGET_OS_IPHONE && DDXML_NS_DECLARATIONS_ENABLED // Since KissXML is a drop in replacement for NSXML, // it may be desireable (when writing cross-platform code to be used on both Mac OS X and iOS)