mirror of
https://github.com/transmission/transmission.git
synced 2025-12-24 12:28:52 +00:00
Use built-in _WIN32 macro instead of WIN32
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
|
||||
#include <iostream>
|
||||
|
||||
#ifdef WIN32
|
||||
#ifdef _WIN32
|
||||
#include <windows.h>
|
||||
#include <shellapi.h>
|
||||
#endif
|
||||
@@ -34,7 +34,7 @@
|
||||
****
|
||||
***/
|
||||
|
||||
#if defined(WIN32) && QT_VERSION >= QT_VERSION_CHECK(5, 0, 0)
|
||||
#if defined(_WIN32) && QT_VERSION >= QT_VERSION_CHECK(5, 0, 0)
|
||||
// Should be in QtWinExtras soon, but for now let's import it manually
|
||||
extern QPixmap qt_pixmapFromWinHICON(HICON icon);
|
||||
#endif
|
||||
@@ -65,7 +65,7 @@ Utils :: toStderr (const QString& str)
|
||||
std::cerr << qPrintable(str) << std::endl;
|
||||
}
|
||||
|
||||
#ifdef WIN32
|
||||
#ifdef _WIN32
|
||||
namespace
|
||||
{
|
||||
void
|
||||
@@ -109,7 +109,7 @@ namespace
|
||||
QIcon
|
||||
Utils :: guessMimeIcon (const QString& filename)
|
||||
{
|
||||
#ifdef WIN32
|
||||
#ifdef _WIN32
|
||||
QIcon icon;
|
||||
|
||||
if (!filename.isEmpty ())
|
||||
|
||||
Reference in New Issue
Block a user