Skip to content

Commit 11d0c6e

Browse files
Victor-Haefneraothms
authored andcommitted
compiles under ubuntu 18.04
1 parent 4cfb2f1 commit 11d0c6e

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

cmake/CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -549,8 +549,9 @@ if(NOT MSVC)
549549
message(FATAL_ERROR "OCCT7 requires a compiler with C++11 support")
550550
endif()
551551
else()
552-
add_definitions(-std=c++03)
552+
add_definitions(-std=c++0x)
553553
endif()
554+
554555
endif()
555556

556557
set(IFCOPENSHELL_LIBRARIES IfcParse IfcGeom)

src/ifcparse/IfcCharacterDecoder.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,10 @@
7070
using namespace IfcParse;
7171
using namespace IfcWrite;
7272

73+
#ifdef HAVE_ICU
74+
#include <unicode/unistr.h>
75+
#endif
76+
7377
void IfcCharacterDecoder::addChar(std::stringstream& s,const UChar32& ch) {
7478
#ifdef HAVE_ICU
7579
if ( destination ) {
@@ -386,4 +390,4 @@ IfcCharacterEncoder::operator std::string() {
386390
#ifdef HAVE_ICU
387391
UErrorCode IfcCharacterEncoder::status = U_ZERO_ERROR;
388392
UConverter* IfcCharacterEncoder::converter = 0;
389-
#endif
393+
#endif

0 commit comments

Comments
 (0)