Skip to content

Commit

Permalink
Add a DDXML_NS_DECLARATIONS_ENABLED macro.
Browse files Browse the repository at this point in the history
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).
  • Loading branch information
Ewan Mellor committed Dec 3, 2015
1 parent 37099ee commit 7c33278
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion KissXML/DDXML.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 7c33278

Please sign in to comment.