diff options
| author | Philip Kaufmann <[email protected]> | 2012-05-17 23:20:47 +0200 |
|---|---|---|
| committer | Philip Kaufmann <[email protected]> | 2012-05-17 23:20:47 +0200 |
| commit | f4ac41806af5766199a7d526a7becbcb8a0f5ab3 (patch) | |
| tree | 2f50d38cec1574a54461e6a85fa9eff6d7ebc468 /src/qt/bitcoin.cpp | |
| parent | Merge pull request #1336 from laanwj/2012_05_consoleicon (diff) | |
| download | discoin-f4ac41806af5766199a7d526a7becbcb8a0f5ab3.tar.xz discoin-f4ac41806af5766199a7d526a7becbcb8a0f5ab3.zip | |
use _strnicmp (ISO C++) instead of deprecated strnicmp (POSIX) and add missing "#define strncasecmp _strnicmp" in init.cpp
Diffstat (limited to 'src/qt/bitcoin.cpp')
| -rw-r--r-- | src/qt/bitcoin.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/qt/bitcoin.cpp b/src/qt/bitcoin.cpp index 9452f7e1e..528c68b1f 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[]) { |