mirror of
https://github.com/bitcoin/bitcoin.git
synced 2024-11-20 02:25:40 +01:00
use _strnicmp (ISO C++) instead of deprecated strnicmp (POSIX) and add missing "#define strncasecmp _strnicmp" in init.cpp
This commit is contained in:
parent
f1e7570755
commit
f4ac41806a
@ -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)
|
||||
|
@ -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[])
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user