From 48cb86dc463ac1d29b73f3b9a104d0805dfb854a Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 2 Sep 2017 01:01:15 +0300 Subject: Fix compilation with old compilers again. Replace PRId64 to casting to uint32_t. --- src/gui/windows/mailviewwindow.cpp | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) (limited to 'src/gui/windows/mailviewwindow.cpp') diff --git a/src/gui/windows/mailviewwindow.cpp b/src/gui/windows/mailviewwindow.cpp index 5f5f6fe15..583a10117 100644 --- a/src/gui/windows/mailviewwindow.cpp +++ b/src/gui/windows/mailviewwindow.cpp @@ -44,15 +44,6 @@ #include "utils/stringutils.h" #include "resources/inventory/inventory.h" - -#ifndef PRId64 -#include -#endif // PRId64 - -#ifndef PRId64 -#error int types not loaded -#endif // PRId64 - #include "debug.h" MailViewWindow *mailViewWindow = nullptr; @@ -119,8 +110,9 @@ MailViewWindow::MailViewWindow(MailMessage *const message, if (message->money != 0) { // TRANSLATORS: mail view window label - mMoneyLabel = new Label(this, strprintf("%s %" PRId64, _("Money:"), - message->money)); + mMoneyLabel = new Label(this, strprintf("%s %u", + _("Money:"), + CAST_U32(message->money))); placer(0, n++, mMoneyLabel); } placer(0, n++, mMessageLabel); -- cgit v1.2.3-60-g2f50