]> OCCT Git - occt-copy.git/commitdiff
0030268: Inspectors - improvements in VInspector plugin, 0030655: - compilation corre...
authornds <nds@opencascade.com>
Tue, 25 Jun 2019 23:28:56 +0000 (02:28 +0300)
committernds <nds@opencascade.com>
Tue, 25 Jun 2019 23:30:52 +0000 (02:30 +0300)
compilation for checked UseFreeImage state in CMake. The patch is not necessary after porting branch to master.

src/BVH/BVH_DistanceField.lxx
src/Image/Image_AlienPixMap.cxx

index c7280c62a718c504be162c9aadcea31baee439fe..6f7b02eb2783bd65262f36e9d94a71e2e5be51c7 100644 (file)
@@ -15,6 +15,8 @@
 
 #include <BVH_Triangulation.hxx>
 
+#include <BVH_Distance.hxx>
+
 #ifdef HAVE_TBB
   // On Windows, function TryEnterCriticalSection has appeared in Windows NT
   // and is surrounded by #ifdef in MS VC++ 7.1 headers.
index f7ed44a05f18fd9e6aefee47c65018d320aff96d..e6bf80705a8e14596dfe67fae58454834ff6b5a1 100644 (file)
@@ -13,6 +13,8 @@
 // Alternatively, this file may be used under the terms of Open CASCADE
 // commercial license or contractual agreement.
 
+#include <windows.h>
+
 #if !defined(HAVE_FREEIMAGE) && defined(_WIN32)
   #define HAVE_WINCODEC
 #endif
@@ -350,12 +352,12 @@ bool Image_AlienPixMap::InitCopy (const Image_PixMap& theCopy)
      && TopDownInc()   == theCopy.TopDownInc())
     {
       // copy with one call
-      memcpy (ChangeData(), theCopy.Data(), std::min (SizeBytes(), theCopy.SizeBytes()));
+      memcpy (ChangeData(), theCopy.Data(), min (SizeBytes(), theCopy.SizeBytes()));
       return true;
     }
 
     // copy row-by-row
-    const Standard_Size aRowSizeBytes = std::min (SizeRowBytes(), theCopy.SizeRowBytes());
+    const Standard_Size aRowSizeBytes = min (SizeRowBytes(), theCopy.SizeRowBytes());
     for (Standard_Size aRow = 0; aRow < myData.SizeY; ++aRow)
     {
       memcpy (ChangeRow (aRow), theCopy.Row (aRow), aRowSizeBytes);