diff --git a/cmake/CMakeLists.txt b/cmake/CMakeLists.txt index b157cd56eb..ad286ec85e 100644 --- a/cmake/CMakeLists.txt +++ b/cmake/CMakeLists.txt @@ -549,8 +549,9 @@ if(NOT MSVC) message(FATAL_ERROR "OCCT7 requires a compiler with C++11 support") endif() else() - add_definitions(-std=c++03) + add_definitions(-std=c++0x) endif() + endif() set(IFCOPENSHELL_LIBRARIES IfcParse IfcGeom) diff --git a/src/ifcparse/IfcCharacterDecoder.cpp b/src/ifcparse/IfcCharacterDecoder.cpp index cbf8e2f6f8..41638366a8 100644 --- a/src/ifcparse/IfcCharacterDecoder.cpp +++ b/src/ifcparse/IfcCharacterDecoder.cpp @@ -70,6 +70,10 @@ using namespace IfcParse; using namespace IfcWrite; +#ifdef HAVE_ICU +#include +#endif + void IfcCharacterDecoder::addChar(std::stringstream& s,const UChar32& ch) { #ifdef HAVE_ICU if ( destination ) { @@ -386,4 +390,4 @@ IfcCharacterEncoder::operator std::string() { #ifdef HAVE_ICU UErrorCode IfcCharacterEncoder::status = U_ZERO_ERROR; UConverter* IfcCharacterEncoder::converter = 0; -#endif \ No newline at end of file +#endif