kimkulling 4 роки тому
батько
коміт
7690f92c81
1 змінених файлів з 4 додано та 0 видалено
  1. 4 0
      code/AssetLib/3MF/D3MFImporter.cpp

+ 4 - 0
code/AssetLib/3MF/D3MFImporter.cpp

@@ -488,7 +488,11 @@ private:
         }
 
         //format of the color string: #RRGGBBAA or #RRGGBB (3MF Core chapter 5.1.1)
+#ifdef _WIN32
         const size_t len = strnlen_s(color, 9);
+#else
+        const size_t len = strnlen(color, 9);
+#endif
         if (9 != len && 7 != len) {
             return false;
         }