Kaydet (Commit) c8481c8a authored tarafından Jan-Marek Glogowski's avatar Jan-Marek Glogowski

Drop duplicate WINVER and _WIN32_WINNT defines

Just keep the definition of _WIN32_WINNT in windows.mk, which
claims it automatically derivates WINVER in some sdk header.

Change-Id: I0a83e91ffdc9e0fc847433a92a45424fbfcb189c
Reviewed-on: https://gerrit.libreoffice.org/61631Reviewed-by: 's avatarMike Kaganski <mike.kaganski@collabora.com>
Tested-by: Jenkins
Reviewed-by: 's avatarJan-Marek Glogowski <glogow@fbihome.de>
üst 40e22f1e
...@@ -30,10 +30,6 @@ ...@@ -30,10 +30,6 @@
hidden window and forward these requests via window messages. hidden window and forward these requests via window messages.
*/ */
#if !defined WINVER
#define WINVER 0x0400
#endif
#include <osl/diagnose.h> #include <osl/diagnose.h>
#include <sal/log.hxx> #include <sal/log.hxx>
......
...@@ -3,9 +3,6 @@ ...@@ -3,9 +3,6 @@
#define AFX_STDAFX_H_ #define AFX_STDAFX_H_
#define STRICT #define STRICT
#ifndef _WIN32_WINNT
#define _WIN32_WINNT 0x0502
#endif
#define _ATL_APARTMENT_THREADED #define _ATL_APARTMENT_THREADED
// #define _ATL_STATIC_REGISTRY // #define _ATL_STATIC_REGISTRY
......
...@@ -25,9 +25,6 @@ ...@@ -25,9 +25,6 @@
#define INCLUDED_EXTENSIONS_SOURCE_ACTIVEX_STDAFX2_H #define INCLUDED_EXTENSIONS_SOURCE_ACTIVEX_STDAFX2_H
#define STRICT #define STRICT
#ifndef _WIN32_WINNT
#define _WIN32_WINNT 0x0502
#endif
#define _ATL_APARTMENT_THREADED #define _ATL_APARTMENT_THREADED
#define _ATL_STATIC_REGISTRY #define _ATL_STATIC_REGISTRY
......
...@@ -28,9 +28,6 @@ ...@@ -28,9 +28,6 @@
#endif #endif
#define STRICT #define STRICT
#ifndef _WIN32_WINNT
#define _WIN32_WINNT 0x0502
#endif
#define _ATL_APARTMENT_THREADED #define _ATL_APARTMENT_THREADED
#include <atlbase.h> #include <atlbase.h>
......
...@@ -28,9 +28,6 @@ ...@@ -28,9 +28,6 @@
#endif #endif
#define STRICT #define STRICT
#ifndef _WIN32_WINNT
#define _WIN32_WINNT 0x0502
#endif
#define _ATL_APARTMENT_THREADED #define _ATL_APARTMENT_THREADED
#include <atlbase.h> #include <atlbase.h>
......
...@@ -28,9 +28,6 @@ ...@@ -28,9 +28,6 @@
#endif #endif
#define STRICT #define STRICT
#ifndef _WIN32_WINNT
#define _WIN32_WINNT 0x0502
#endif
#define _ATL_APARTMENT_THREADED #define _ATL_APARTMENT_THREADED
#include <stdio.h> #include <stdio.h>
......
...@@ -41,9 +41,6 @@ ...@@ -41,9 +41,6 @@
#define INCLUDED_EXAMPLES_ACTIVEX_STDAFX2_H #define INCLUDED_EXAMPLES_ACTIVEX_STDAFX2_H
#define STRICT #define STRICT
#ifndef _WIN32_WINNT
#define _WIN32_WINNT 0x0502
#endif
#define _ATL_APARTMENT_THREADED #define _ATL_APARTMENT_THREADED
#define _ATL_STATIC_REGISTRY #define _ATL_STATIC_REGISTRY
......
...@@ -16,10 +16,6 @@ ...@@ -16,10 +16,6 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 . * the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/ */
#if !defined WINVER
#define WINVER 0x0400
#endif
#include <sal/macros.h> #include <sal/macros.h>
#include <sal/log.hxx> #include <sal/log.hxx>
......
...@@ -66,8 +66,7 @@ gb_COMPILERDEFS += \ ...@@ -66,8 +66,7 @@ gb_COMPILERDEFS += \
endif endif
gb_RCDEFS := \ gb_RCDEFS := \
-DWINVER=0x0502 \ $(gb_WIN_VERSION_DEFS) \
-DWIN32 \
gb_RCFLAGS := gb_RCFLAGS :=
......
...@@ -26,10 +26,13 @@ gb_MKTEMP := mktemp --tmpdir=$(gb_TMPDIR) gbuild.XXXXXX ...@@ -26,10 +26,13 @@ gb_MKTEMP := mktemp --tmpdir=$(gb_TMPDIR) gbuild.XXXXXX
# current baseline is Windows 7 (NT 6.1) # current baseline is Windows 7 (NT 6.1)
# for _WIN32_IE, if _WIN32_WINNT >= 0x0600 the derived value from # for _WIN32_IE, if _WIN32_WINNT >= 0x0600 the derived value from
# sdkddkver.h is sufficient # sdkddkver.h is sufficient
gb_OSDEFS := \ gb_WIN_VERSION_DEFS := \
-D_WIN32_WINNT=0x0601 \ -D_WIN32_WINNT=0x0601 \
-DWIN32 \ -DWIN32 \
-DWNT \ -DWNT \
gb_OSDEFS := \
$(gb_WIN_VERSION_DEFS) \
-DNOMINMAX \ -DNOMINMAX \
$(LFS_CFLAGS) \ $(LFS_CFLAGS) \
......
...@@ -26,9 +26,6 @@ ...@@ -26,9 +26,6 @@
#include <o3tl/char16_t2wchar_t.hxx> #include <o3tl/char16_t2wchar_t.hxx>
#ifdef _WIN32 #ifdef _WIN32
#if !defined WINVER
# define WINVER 0x0400
#endif
#if !defined WIN32_LEAN_AND_MEAN #if !defined WIN32_LEAN_AND_MEAN
# define WIN32_LEAN_AND_MEAN # define WIN32_LEAN_AND_MEAN
#endif #endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment