diff options
Diffstat (limited to 'src/uscxml/plugins/datamodel/ecmascript/JavaScriptCore/JSCDataModel.h')
-rw-r--r-- | src/uscxml/plugins/datamodel/ecmascript/JavaScriptCore/JSCDataModel.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/uscxml/plugins/datamodel/ecmascript/JavaScriptCore/JSCDataModel.h b/src/uscxml/plugins/datamodel/ecmascript/JavaScriptCore/JSCDataModel.h index 55e5c1f..b65dc37 100644 --- a/src/uscxml/plugins/datamodel/ecmascript/JavaScriptCore/JSCDataModel.h +++ b/src/uscxml/plugins/datamodel/ecmascript/JavaScriptCore/JSCDataModel.h @@ -20,10 +20,22 @@ #ifndef JSCDATAMODEL_H_KN8TWG0V #define JSCDATAMODEL_H_KN8TWG0V +#include "uscxml/config.h" #include "uscxml/plugins/DataModel.h" #include <list> #include <set> + +/** + * There are two variants with JavaScriptCore headers + * Still beats the >20 V8 variants =D + */ +#if defined(HAS_JSC_JAVASCRIPTCORE_H) #include <JavaScriptCore/JavaScriptCore.h> +#elif defined(HAS_JSC_JAVASCRIPT_H) +#include <JavaScriptCore/JavaScript.h> +#else +#error "Did not find header for JSC?" +#endif #ifdef BUILD_AS_PLUGINS #include "uscxml/plugins/Plugins.h" |