summaryrefslogtreecommitdiffstatshomepage
path: root/src
diff options
context:
space:
mode:
author couriersud <couriersud@arcor.de>2015-08-11 22:40:58 +0200
committer couriersud <couriersud@arcor.de>2015-08-11 22:40:58 +0200
commitc32e086c2c73f509bc4dd716480def694a57e9ad (patch)
treee70486fc6c2a6ab89cdebd55ceb4483568a9f2a2 /src
parentb2dc589e6388027da308c1e60e3a4070cc0497e3 (diff)
Fix mingw compiles (both 32 and 64). These seem to have a different
understanding of size_t than *nix compilers. (nw)
Diffstat (limited to 'src')
-rw-r--r--src/emu/netlist/plib/pstring.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/emu/netlist/plib/pstring.h b/src/emu/netlist/plib/pstring.h
index 28fc09fe327..fdf7d24facd 100644
--- a/src/emu/netlist/plib/pstring.h
+++ b/src/emu/netlist/plib/pstring.h
@@ -392,7 +392,7 @@ public:
const char *cstr() { return m_str; }
pformat &operator ()(const INT64 x, const char *f = "") { return update(f, I64FMT "d", x); }
-// pformat &operator ()(const UINT64 x, const char *f = "") { return update(f, I64FMT "u", x); }
+ pformat &operator ()(const UINT64 x, const char *f = "") { return update(f, I64FMT "u", x); }
pformat &x (const INT64 x, const char *f = "") { return update(f, I64FMT "x", x); }
pformat &x (const UINT64 x, const char *f = "") { return update(f, I64FMT "x", x); }
@@ -406,8 +406,9 @@ public:
pformat &operator ()(const INT16 x, const char *f = "") { return update(f, "hd", x); }
pformat &operator ()(const UINT16 x, const char *f = "") { return update(f, "hu", x); }
+#if !defined(__MINGW32__) && !defined(__MINGW64__)
pformat &operator ()(const std::size_t x, const char *f = "") { return update(f, SIZETFMT, x); }
-
+#endif
pformat &operator ()(const double x, const char *f = "") { return update(f, "f", x); }
pformat & e(const double x, const char *f = "") { return update(f, "e", x); }
pformat & g(const double x, const char *f = "") { return update(f, "g", x); }