diff --git a/app/core/gimp-utils.c b/app/core/gimp-utils.c index a1c563e7e8..7ac01babd5 100644 --- a/app/core/gimp-utils.c +++ b/app/core/gimp-utils.c @@ -33,9 +33,7 @@ #include #ifdef G_OS_WIN32 -#define _WIN32_WINNT 0x0500 #include -#include #endif #include diff --git a/app/main.c b/app/main.c index 510e6b90d9..1adc133cb2 100644 --- a/app/main.c +++ b/app/main.c @@ -74,13 +74,6 @@ #include "unique.h" #ifdef G_OS_WIN32 -/* To get PROCESS_DEP_* defined we need _WIN32_WINNT at 0x0601. We still - * use the API optionally only if present, though. - */ -#ifdef _WIN32_WINNT -#undef _WIN32_WINNT -#endif -#define _WIN32_WINNT 0x0601 #include #include #endif diff --git a/app/tests/gimp-app-test-utils.c b/app/tests/gimp-app-test-utils.c index dbf0436148..4ab44eac43 100644 --- a/app/tests/gimp-app-test-utils.c +++ b/app/tests/gimp-app-test-utils.c @@ -40,16 +40,6 @@ #include "gimp-app-test-utils.h" -#ifdef G_OS_WIN32 -/* SendInput() requirement is Windows 2000 pro or over. - * We may need to set WINVER to make sure the compiler does not try to - * compile for on older version of win32, thus breaking the build. - * See - * http://msdn.microsoft.com/en-us/library/aa383745%28v=vs.85%29.aspx#setting_winver_or__win32_winnt - */ -#define WINVER 0x0500 -#include -#endif /* G_OS_WIN32 */ #ifdef GDK_WINDOWING_QUARTZ // only to get keycode definitions from HIToolbox/Events.h diff --git a/libgimp/gimp-debug.c b/libgimp/gimp-debug.c index 34b7a101f5..b6f69cd37b 100644 --- a/libgimp/gimp-debug.c +++ b/libgimp/gimp-debug.c @@ -43,11 +43,6 @@ # endif # define STRICT -# ifdef _WIN32_WINNT -# undef _WIN32_WINNT -# endif -# define _WIN32_WINNT 0x0601 - # include # include # include diff --git a/libgimp/gimp-shm.c b/libgimp/gimp-shm.c index 1cd6e9430c..6de8d71f18 100644 --- a/libgimp/gimp-shm.c +++ b/libgimp/gimp-shm.c @@ -51,11 +51,6 @@ # endif # define STRICT -# ifdef _WIN32_WINNT -# undef _WIN32_WINNT -# endif -# define _WIN32_WINNT 0x0601 - # include # include # undef RGB diff --git a/libgimp/gimp.c b/libgimp/gimp.c index 4734896538..1e18689a87 100644 --- a/libgimp/gimp.c +++ b/libgimp/gimp.c @@ -75,11 +75,6 @@ # endif # define STRICT -# ifdef _WIN32_WINNT -# undef _WIN32_WINNT -# endif -# define _WIN32_WINNT 0x0601 - # include # include # undef RGB diff --git a/libgimpwidgets/gimpwidgetsutils.c b/libgimpwidgets/gimpwidgetsutils.c index 9bd073f8af..bc32d8079d 100644 --- a/libgimpwidgets/gimpwidgetsutils.c +++ b/libgimpwidgets/gimpwidgetsutils.c @@ -37,10 +37,6 @@ #endif #ifdef G_OS_WIN32 -#ifdef _WIN32_WINNT -#undef _WIN32_WINNT -#endif -#define _WIN32_WINNT 0x0600 #include #include #endif diff --git a/modules/controller-dx-dinput.c b/modules/controller-dx-dinput.c index afb6c27c16..60ade55d0a 100644 --- a/modules/controller-dx-dinput.c +++ b/modules/controller-dx-dinput.c @@ -33,9 +33,7 @@ #include #include -#define _WIN32_WINNT 0x0501 #include -#define DIRECTINPUT_VERSION 0x0800 #include #include diff --git a/modules/gimpinputdevicestore-dx.c b/modules/gimpinputdevicestore-dx.c index 7e7e210fab..5a99d92419 100644 --- a/modules/gimpinputdevicestore-dx.c +++ b/modules/gimpinputdevicestore-dx.c @@ -27,9 +27,7 @@ #include #ifdef HAVE_DX_DINPUT -#define _WIN32_WINNT 0x0501 #include -#define DIRECTINPUT_VERSION 0x0800 #include #include diff --git a/plug-ins/screenshot/screenshot-win32.c b/plug-ins/screenshot/screenshot-win32.c index 47882def66..7e296bc714 100644 --- a/plug-ins/screenshot/screenshot-win32.c +++ b/plug-ins/screenshot/screenshot-win32.c @@ -31,14 +31,6 @@ #include #include -/* Necessary in order to have SetProcessDPIAware() defined. - * This value of _WIN32_WINNT corresponds to Windows 7, which is our - * minimum supported platform. - */ -#ifdef _WIN32_WINNT -#undef _WIN32_WINNT -#endif -#define _WIN32_WINNT 0x0601 #include #include diff --git a/plug-ins/script-fu/server/script-fu-server.c b/plug-ins/script-fu/server/script-fu-server.c index c4761842f1..7bf9ed64cb 100644 --- a/plug-ins/script-fu/server/script-fu-server.c +++ b/plug-ins/script-fu/server/script-fu-server.c @@ -61,21 +61,11 @@ #include #ifdef G_OS_WIN32 -#ifdef _WIN32_WINNT -#undef _WIN32_WINNT -#endif -#define _WIN32_WINNT 0x0502 #include #include typedef short sa_family_t; /* Not defined by winsock */ -#ifndef AI_ADDRCONFIG -/* Missing from mingw headers, but value is publicly documented - * on http://msdn.microsoft.com/en-us/library/ms737530%28v=VS.85%29.aspx - */ -#define AI_ADDRCONFIG 0x0400 -#endif #include #else #include diff --git a/tools/gimp-debug-resume.c b/tools/gimp-debug-resume.c index 2aac3b3d49..75a9453bd6 100644 --- a/tools/gimp-debug-resume.c +++ b/tools/gimp-debug-resume.c @@ -2,7 +2,6 @@ */ #define WIN32_LEAN_AND_MEAN -#define _WIN32_WINNT 0x0502 #include #include #include