mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-24 10:06:57 +00:00
compiles under ubuntu 18.04
This commit is contained in:
committed by
Thomas Krijnen
parent
4cfb2f1027
commit
11d0c6ef56
@@ -549,8 +549,9 @@ if(NOT MSVC)
|
|||||||
message(FATAL_ERROR "OCCT7 requires a compiler with C++11 support")
|
message(FATAL_ERROR "OCCT7 requires a compiler with C++11 support")
|
||||||
endif()
|
endif()
|
||||||
else()
|
else()
|
||||||
add_definitions(-std=c++03)
|
add_definitions(-std=c++0x)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
set(IFCOPENSHELL_LIBRARIES IfcParse IfcGeom)
|
set(IFCOPENSHELL_LIBRARIES IfcParse IfcGeom)
|
||||||
|
|||||||
@@ -70,6 +70,10 @@
|
|||||||
using namespace IfcParse;
|
using namespace IfcParse;
|
||||||
using namespace IfcWrite;
|
using namespace IfcWrite;
|
||||||
|
|
||||||
|
#ifdef HAVE_ICU
|
||||||
|
#include <unicode/unistr.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
void IfcCharacterDecoder::addChar(std::stringstream& s,const UChar32& ch) {
|
void IfcCharacterDecoder::addChar(std::stringstream& s,const UChar32& ch) {
|
||||||
#ifdef HAVE_ICU
|
#ifdef HAVE_ICU
|
||||||
if ( destination ) {
|
if ( destination ) {
|
||||||
@@ -386,4 +390,4 @@ IfcCharacterEncoder::operator std::string() {
|
|||||||
#ifdef HAVE_ICU
|
#ifdef HAVE_ICU
|
||||||
UErrorCode IfcCharacterEncoder::status = U_ZERO_ERROR;
|
UErrorCode IfcCharacterEncoder::status = U_ZERO_ERROR;
|
||||||
UConverter* IfcCharacterEncoder::converter = 0;
|
UConverter* IfcCharacterEncoder::converter = 0;
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user