diff --git a/xs/src/libslic3r/libslic3r.h b/xs/src/libslic3r/libslic3r.h index c60ed6d03b..680716bb8d 100644 --- a/xs/src/libslic3r/libslic3r.h +++ b/xs/src/libslic3r/libslic3r.h @@ -49,4 +49,14 @@ using namespace Slic3r; void confess_at(const char *file, int line, const char *func, const char *pat, ...); /* End implementation of CONFESS("foo"): */ +// Which C++ version is supported? +// For example, could optimized functions with move semantics be used? +#if __cplusplus==201402L + #define SLIC3R_CPPVER 14 +#elif __cplusplus==201103L + #define SLIC3R_CPPVER 11 +#else + #define SLIC3R_CPPVER 0 +#endif + #endif