From 4cee76ddc388b214aaeeb4a75307b6eb0ac15430 Mon Sep 17 00:00:00 2001 From: Thomas Krijnen Date: Fri, 8 Oct 2021 15:25:28 +0200 Subject: [PATCH] Make preprocessor defs consistent in IfcConvert.cpp and util.h --- src/ifcparse/utils.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ifcparse/utils.h b/src/ifcparse/utils.h index ea60de4689..dda0ecc768 100644 --- a/src/ifcparse/utils.h +++ b/src/ifcparse/utils.h @@ -37,7 +37,7 @@ namespace IfcUtil { IFC_PARSE_API bool delete_file(const std::string& filename); IFC_PARSE_API bool rename_file(const std::string& old_filename, const std::string& new_filename); -#ifdef _MSC_VER +#if defined(_MSC_VER) && defined(_UNICODE) /// Uses windows.h string conversion functions IFC_PARSE_API std::string to_utf8(const std::wstring& str);