aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJeff Garzik <jgarzik@exmulti.com>2012-05-17 15:53:38 -0700
committerJeff Garzik <jgarzik@exmulti.com>2012-05-17 15:53:38 -0700
commitc0a360ce49f09654c09d2eb66a1bdd03aba7e77b (patch)
tree9f3b6b6fe88c781c1453a77abdef35a17b4083df /src
parentf0fc95a1434b0f1d4d879d30c1a6c5c12245754a (diff)
parentf4ac41806af5766199a7d526a7becbcb8a0f5ab3 (diff)
downloadbitcoin-c0a360ce49f09654c09d2eb66a1bdd03aba7e77b.tar.xz
Merge pull request #1345 from Diapolo/strnicmp_Win32
Win32: use _strnicmp (ISO C++) instead of deprecated strnicmp (POSIX)
Diffstat (limited to 'src')
-rw-r--r--src/init.cpp2
-rw-r--r--src/qt/bitcoin.cpp7
2 files changed, 5 insertions, 4 deletions
diff --git a/src/init.cpp b/src/init.cpp
index b027a53d81..15eb883ac9 100644
--- a/src/init.cpp
+++ b/src/init.cpp
@@ -16,6 +16,7 @@
#ifndef WIN32
#include <signal.h>
+#define strncasecmp _strnicmp
#endif
using namespace std;
@@ -162,7 +163,6 @@ bool static InitError(const std::string &str)
{
ThreadSafeMessageBox(str, _("Bitcoin"), wxOK | wxMODAL);
return false;
-
}
bool static InitWarning(const std::string &str)
diff --git a/src/qt/bitcoin.cpp b/src/qt/bitcoin.cpp
index 9452f7e1e3..528c68b1fc 100644
--- a/src/qt/bitcoin.cpp
+++ b/src/qt/bitcoin.cpp
@@ -33,6 +33,10 @@ Q_IMPORT_PLUGIN(qkrcodecs)
Q_IMPORT_PLUGIN(qtaccessiblewidgets)
#endif
+#ifdef WIN32
+#define strncasecmp _strnicmp
+#endif
+
// Need a global reference for the notifications to find the GUI
static BitcoinGUI *guiref;
static QSplashScreen *splashref;
@@ -177,9 +181,6 @@ void HelpMessageBox::exec()
#endif
}
-#ifdef WIN32
-#define strncasecmp strnicmp
-#endif
#ifndef BITCOIN_QT_TEST
int main(int argc, char *argv[])
{