diff --git a/CMakeLists.txt b/CMakeLists.txt index 2bc4dcea3..a5dc9331d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -288,6 +288,9 @@ else() endif() endif() +# Set option to let manuallu define XERCESC_NS +set(XERCESC_NS "xercesc_3_1" CACHE STRING "Namespace for XercesC library") + if (XercesC_FOUND) if(${XercesC_VERSION} VERSION_LESS "3.2") set(XERCESC_NS "xercesc_3_1") diff --git a/contrib/python/bindings/test-state-pass.py b/contrib/python/bindings/test-state-pass.py index 56aba97c4..fb8750b0a 100644 --- a/contrib/python/bindings/test-state-pass.py +++ b/contrib/python/bindings/test-state-pass.py @@ -14,7 +14,7 @@ def main(argv): import uscxmlNativePython as uscxml - print "Processing" + argv[1] + print("Processing" + argv[1]) interpreter = uscxml.Interpreter.fromURL(argv[1]); state = interpreter.step() diff --git a/src/uscxml/Common.h b/src/uscxml/Common.h index b969c3a92..ec11162c7 100644 --- a/src/uscxml/Common.h +++ b/src/uscxml/Common.h @@ -20,10 +20,6 @@ #ifndef COMMON_H_YZ3CIYP #define COMMON_H_YZ3CIYP -#ifndef XERCESC_NS -#define XERCESC_NS xercesc_3_1 -#endif - #ifndef _MSC_VER #define ELPP_STACKTRACE_ON_CRASH 1 #endif diff --git a/src/uscxml/debug/InterpreterIssue.h b/src/uscxml/debug/InterpreterIssue.h index d845ba833..307617159 100644 --- a/src/uscxml/debug/InterpreterIssue.h +++ b/src/uscxml/debug/InterpreterIssue.h @@ -21,6 +21,7 @@ #ifndef INTERPRETERISSUE_H_962CB305 #define INTERPRETERISSUE_H_962CB305 +#include "uscxml/config.h" #include "uscxml/Common.h" #include diff --git a/src/uscxml/interpreter/BasicContentExecutor.cpp b/src/uscxml/interpreter/BasicContentExecutor.cpp index 7b62fd4f5..345674d15 100644 --- a/src/uscxml/interpreter/BasicContentExecutor.cpp +++ b/src/uscxml/interpreter/BasicContentExecutor.cpp @@ -30,6 +30,7 @@ #include #include "uscxml/interpreter/Logging.h" +#include "uscxml/config.h" namespace uscxml { diff --git a/src/uscxml/interpreter/BasicContentExecutor.h b/src/uscxml/interpreter/BasicContentExecutor.h index de756dc3a..d3caa90d7 100644 --- a/src/uscxml/interpreter/BasicContentExecutor.h +++ b/src/uscxml/interpreter/BasicContentExecutor.h @@ -20,6 +20,7 @@ #ifndef BASICCONTENTEXECUTOR_H_B873199D #define BASICCONTENTEXECUTOR_H_B873199D +#include "uscxml/config.h" #include "ContentExecutorImpl.h" #include "uscxml/plugins/ExecutableContent.h" diff --git a/src/uscxml/interpreter/InterpreterMonitor.h b/src/uscxml/interpreter/InterpreterMonitor.h index 197357ae2..d6e6536bd 100644 --- a/src/uscxml/interpreter/InterpreterMonitor.h +++ b/src/uscxml/interpreter/InterpreterMonitor.h @@ -25,6 +25,7 @@ #include "uscxml/interpreter/Logging.h" #include "uscxml/debug/InterpreterIssue.h" +#include #include #include diff --git a/src/uscxml/messages/Data.h b/src/uscxml/messages/Data.h index 5e4df8705..356f3576f 100644 --- a/src/uscxml/messages/Data.h +++ b/src/uscxml/messages/Data.h @@ -25,6 +25,7 @@ #include #include +#include "uscxml/config.h" #include "uscxml/Common.h" #include "uscxml/util/Convenience.h" #include "uscxml/messages/Blob.h" diff --git a/src/uscxml/plugins/ExecutableContent.h b/src/uscxml/plugins/ExecutableContent.h index 8ff9430a3..5fb2ac639 100644 --- a/src/uscxml/plugins/ExecutableContent.h +++ b/src/uscxml/plugins/ExecutableContent.h @@ -20,6 +20,7 @@ #ifndef EXECUTABLECONTENT_H_1E028A2D #define EXECUTABLECONTENT_H_1E028A2D +#include "uscxml/config.h" #include "uscxml/Common.h" #include diff --git a/src/uscxml/util/DOM.h b/src/uscxml/util/DOM.h index 40a57c851..069890676 100644 --- a/src/uscxml/util/DOM.h +++ b/src/uscxml/util/DOM.h @@ -24,6 +24,7 @@ #include #include +#include "uscxml/config.h" #include "uscxml/Common.h" #include #include