diff --git a/cpp/expressionsLib/inc/OscExprExportDefs.h b/cpp/expressionsLib/inc/OscExprExportDefs.h index 1f24fbc3..4b34379e 100644 --- a/cpp/expressionsLib/inc/OscExprExportDefs.h +++ b/cpp/expressionsLib/inc/OscExprExportDefs.h @@ -35,6 +35,8 @@ # endif #elif defined(__APPLE__) # define OSC_EXPR_EXP +#elif defined(__EMSCRIPTEN__) +# define OSC_EXPR_EXP #else # error "OPENSCENARIOLIB: Operating system not supported." #endif // _WIN32 diff --git a/cpp/openScenarioLib/src/common/ExportDefinitions.h b/cpp/openScenarioLib/src/common/ExportDefinitions.h index 2b0dfb2d..0e46f766 100644 --- a/cpp/openScenarioLib/src/common/ExportDefinitions.h +++ b/cpp/openScenarioLib/src/common/ExportDefinitions.h @@ -19,6 +19,8 @@ # endif #elif defined(__APPLE__) # define OPENSCENARIOLIB_EXP +#elif defined(__EMSCRIPTEN__) +# define OPENSCENARIOLIB_EXP #else # error "OPENSCENARIOLIB: Operating system not supported." #endif // _WIN32 diff --git a/cpp/openScenarioLib/src/loader/FileResourceLocator.cpp b/cpp/openScenarioLib/src/loader/FileResourceLocator.cpp index 7a9e7600..b8d7d6ad 100644 --- a/cpp/openScenarioLib/src/loader/FileResourceLocator.cpp +++ b/cpp/openScenarioLib/src/loader/FileResourceLocator.cpp @@ -41,7 +41,7 @@ namespace NET_ASAM_OPENSCENARIO } auto infile = std::make_shared(result.c_str(), std::ios::binary); -#elif defined (__linux__) || defined (__APPLE__) +#elif defined (__linux__) || defined (__APPLE__) || defined (__EMSCRIPTEN__) auto infile = std::make_shared(symbolicFilename, std::ios::binary); #else # error "Operating system not supported."