Browse Source

Fix for windows build

JoshEngebretson 10 years ago
parent
commit
bf01a3dd03
1 changed files with 2 additions and 1 deletions
  1. 2 1
      Source/AtomicWebView/WebSchemeHandler.cpp

+ 2 - 1
Source/AtomicWebView/WebSchemeHandler.cpp

@@ -8,6 +8,7 @@
 #include "include/cef_scheme.h"
 #include "include/cef_scheme.h"
 #include "include/wrapper/cef_helpers.h"
 #include "include/wrapper/cef_helpers.h"
 
 
+#include <Atomic/Math/MathDefs.h>
 #include <Atomic/Resource/ResourceCache.h>
 #include <Atomic/Resource/ResourceCache.h>
 #include <Atomic/IO/FileSystem.h>
 #include <Atomic/IO/FileSystem.h>
 
 
@@ -101,7 +102,7 @@ public:
         if (offset_ < fileLength_)
         if (offset_ < fileLength_)
         {
         {
             // Copy the next block of data into the buffer.
             // Copy the next block of data into the buffer.
-            int transfer_size = std::min(bytes_to_read, static_cast<int>(fileLength_ - offset_));
+            int transfer_size = Min(bytes_to_read, static_cast<int>(fileLength_ - offset_));
 
 
             file_->Read(data_out, transfer_size);
             file_->Read(data_out, transfer_size);
             offset_ += transfer_size;
             offset_ += transfer_size;