]> OCCT Git - occt-copy.git/commitdiff
0027960: Configuration - fix compilation of OSD_Directory with MinGW-w64
authorkgv <kgv@opencascade.com>
Thu, 13 Oct 2016 17:22:27 +0000 (20:22 +0300)
committerapn <apn@opencascade.com>
Thu, 27 Oct 2016 14:30:26 +0000 (17:30 +0300)
Check _NATIVE_WCHAR_T_DEFINED only within _MSC_VER since it is msvc-specific.

src/NCollection/NCollection_UtfString.hxx
src/NCollection/NCollection_UtfString.lxx
src/TCollection/TCollection_AsciiString.hxx
src/TCollection/TCollection_ExtendedString.hxx

index 57cd8642a929809f2ec40d0a72c678f8bc09e146..61ff91672b533e8e319d8d9549dd73d7d7c786e1 100755 (executable)
@@ -96,7 +96,7 @@ public:
   NCollection_UtfString (const Standard_Utf32Char* theCopyUtf32,
                          const Standard_Integer    theLength = -1);
 
-#if !defined(_WIN32) || defined(_NATIVE_WCHAR_T_DEFINED) || (defined(_MSC_VER) && _MSC_VER >= 1900)
+#if !defined(_MSC_VER) || defined(_NATIVE_WCHAR_T_DEFINED) || (defined(_MSC_VER) && _MSC_VER >= 1900)
   //! Copy constructor from NULL-terminated wide UTF string.
   //! @param theCopyUtfWide NULL-terminated wide UTF string to copy
   //! @param theLength      the length limit in Unicode symbols (NOT bytes!)
index ba602f532b338c3b59dc833d17d04acfe675bdb2..ca03ab2817a859896f78f1f605f079667d8c6a89 100755 (executable)
@@ -179,7 +179,7 @@ NCollection_UtfString<Type>::NCollection_UtfString (const Standard_Utf32Char* th
   FromUnicode (theCopyUtf32, theLength);
 }
 
-#if !defined(_WIN32) || defined(_NATIVE_WCHAR_T_DEFINED) || (defined(_MSC_VER) && _MSC_VER >= 1900)
+#if !defined(_MSC_VER) || defined(_NATIVE_WCHAR_T_DEFINED) || (defined(_MSC_VER) && _MSC_VER >= 1900)
 // =======================================================================
 // function : NCollection_UtfString
 // purpose  :
index bb39d47d3001faaca2641c194b58acb3b8de8997..cac5525439e6ff8d80c9a6dc3215fa02fed21a79 100644 (file)
@@ -99,7 +99,7 @@ public:
   //! Otherwise, creates UTF-8 unicode string.
   Standard_EXPORT TCollection_AsciiString(const TCollection_ExtendedString& astring, const Standard_Character replaceNonAscii = 0);
 
-#if !defined(_WIN32) || defined(_NATIVE_WCHAR_T_DEFINED)
+#if !defined(_MSC_VER) || defined(_NATIVE_WCHAR_T_DEFINED)
   //! Initialize UTF-8 Unicode string from wide-char string considering it as Unicode string
   //! (the size of wide char is a platform-dependent - e.g. on Windows wchar_t is UTF-16).
   //!
index 6564479f7d5cf08983d94605031ab64fba800b53..5f10fec26db9208408cb300fdd49f67769e32d2c 100644 (file)
@@ -73,7 +73,7 @@ public:
   //! Creation by converting an ExtString to an extended string.
   Standard_EXPORT TCollection_ExtendedString(const Standard_ExtString astring);
 
-#if !defined(_WIN32) || defined(_NATIVE_WCHAR_T_DEFINED)
+#if !defined(_MSC_VER) || defined(_NATIVE_WCHAR_T_DEFINED)
   //! Initialize from wide-char string considering it as Unicode string
   //! (the size of wide char is a platform-dependent - e.g. on Windows wchar_t is UTF-16).
   //!