algorithm-> utility where appropriate, fix imgtool (nw)

This commit is contained in:
Miodrag Milanovic 2016-07-31 15:37:37 +02:00
parent 184f7e5605
commit 185f5059fb
10 changed files with 10 additions and 10 deletions

View File

@ -24,7 +24,7 @@
#include <vector>
#undef min
#undef max
#include <algorithm>
#include <utility>
#include "modules/lib/osdlib.h"

View File

@ -20,7 +20,7 @@
#include <string>
#undef min
#undef max
#include <algorithm>
#include <utility>
//============================================================

View File

@ -25,7 +25,7 @@
#undef min
#undef max
#include <algorithm>
#include <utility>
#include <mutex>
#include <thread>

View File

@ -27,7 +27,7 @@
#include "../frontend/mame/ui/slider.h"
#undef min
#undef max
#include <algorithm>
#include <utility>
//============================================================
// PROTOTYPES

View File

@ -21,7 +21,7 @@
#include "modules/render/d3d/d3dhlsl.h"
#undef min
#undef max
#include <algorithm>
#include <utility>
//============================================================
// TYPE DEFINITIONS

View File

@ -36,7 +36,7 @@
#include "winmain.h"
#include "window.h"
#endif
#include <algorithm>
#include <utility>
//============================================================
// DEBUGGING

View File

@ -29,7 +29,7 @@
#include <thread>
#include <queue>
#include <chrono>
#include <algorithm>
#include <utility>
// MAME headers
#include "emu.h"

View File

@ -23,7 +23,7 @@
#include <vector>
#undef min
#undef max
#include <algorithm>
#include <utility>
// MAME headers
#include "osdcore.h"
#include "osdsync.h"

View File

@ -11,7 +11,7 @@
#endif
#undef min
#undef max
#include <algorithm>
#include <utility>
// MAMEOS headers
#include "strconv.h"

View File

@ -373,7 +373,7 @@ UINT64 stream_transfer(imgtool_stream *dest, imgtool_stream *source, UINT64 sz)
UINT64 readsz;
char buf[1024];
while(sz && (readsz = stream_read(source, buf, std::min(sz, sizeof(buf)))))
while(sz && (readsz = stream_read(source, buf, std::min(sz, UINT64(sizeof(buf))))))
{
stream_write(dest, buf, readsz);
sz -= readsz;