[Libreoffice-commits] core.git: canvas/Library_cairocanvas.mk canvas/source connectivity/Library_ado.mk connectivity/source crashrep/source desktop/Library_deploymentgui.mk desktop/source embeddedobj/Library_emboleobj.mk embeddedobj/source embedserv/Library_emser.mk embedserv/source extensions/Library_oleautobridge.mk extensions/source extensions/test external/libmariadb external/nss filter/source fpicker/source i18nlangtag/source odk/examples sal/Library_sal.mk sal/osl setup_native/Library_sellangmsi.mk setup_native/Library_shlxtmsi.mk setup_native/source sfx2/source shell/Library_ooofilt.mk shell/Library_ooofilt_x64.mk shell/Library_propertyhdl.mk shell/Library_propertyhdl_x64.mk shell/Library_shlxthdl.mk shell/Library_shlxthdl_x64.mk shell/source shell/StaticLibrary_shlxthandler_common.mk shell/StaticLibrary_shlxthandler_common_x64.mk solenv/gbuild vcl/win

Thomas Arnhold thomas at arnhold.org
Wed Nov 20 05:15:38 PST 2013


 canvas/Library_cairocanvas.mk                                                   |    4 ++++
 canvas/source/cairo/cairo_win32_cairo.cxx                                       |    2 --
 connectivity/Library_ado.mk                                                     |    6 ++++++
 connectivity/source/drivers/ado/ADriver.cxx                                     |    5 -----
 crashrep/source/win32/rcheader.txt                                              |    1 -
 desktop/Library_deploymentgui.mk                                                |    4 ++++
 desktop/source/deployment/gui/dp_gui_extensioncmdqueue.cxx                      |    4 ----
 embeddedobj/Library_emboleobj.mk                                                |    4 ++++
 embeddedobj/source/msole/platform.h                                             |    3 ---
 embedserv/Library_emser.mk                                                      |    1 +
 embedserv/source/embed/esdll.cxx                                                |    1 -
 embedserv/source/inc/stdafx.h                                                   |    2 +-
 extensions/Library_oleautobridge.mk                                             |    4 ++++
 extensions/source/activex/StdAfx2.h                                             |    2 +-
 extensions/source/activex/so_activex.rc                                         |    1 -
 extensions/source/ole/oledll.cxx                                                |    1 -
 extensions/source/ole/oleobjw.cxx                                               |    3 ---
 extensions/source/ole/servprov.cxx                                              |    4 ----
 extensions/source/ole/servreg.cxx                                               |    3 ---
 extensions/source/ole/unoobjw.cxx                                               |    3 ---
 extensions/source/ole/wincrap.hxx                                               |    4 ----
 extensions/test/ole/AxTestComponents/StdAfx.h                                   |    2 +-
 extensions/test/ole/EventListenerSample/EventListener/StdAfx.h                  |    2 +-
 extensions/test/ole/unoTocomCalls/XCallback_Impl/StdAfx.h                       |    2 +-
 external/libmariadb/mariadb-trunk-101.patch                                     |    2 +-
 external/nss/nss-3.13.3-build.patch.3                                           |    2 +-
 filter/source/placeware/tempfile.cxx                                            |    5 -----
 fpicker/source/win32/filepicker/FileOpenDlg.cxx                                 |    5 -----
 fpicker/source/win32/filepicker/platform_xp.h                                   |    6 +++---
 i18nlangtag/source/isolang/inwnt.cxx                                            |    2 --
 odk/examples/OLE/activex/StdAfx2.h                                              |    2 +-
 sal/Library_sal.mk                                                              |    4 ++++
 sal/osl/w32/file.cxx                                                            |    1 -
 sal/osl/w32/file_dirvol.cxx                                                     |    1 -
 sal/osl/w32/file_error.c                                                        |    1 -
 sal/osl/w32/file_url.cxx                                                        |    1 -
 sal/osl/w32/system.h                                                            |    5 -----
 sal/osl/w32/tempfile.cxx                                                        |    1 -
 setup_native/Library_sellangmsi.mk                                              |    2 ++
 setup_native/Library_shlxtmsi.mk                                                |    1 +
 setup_native/source/win32/customactions/sellang/sellang.cxx                     |    5 -----
 setup_native/source/win32/customactions/shellextensions/checkdirectory.cxx      |    2 --
 setup_native/source/win32/customactions/shellextensions/checkpatches.cxx        |    2 --
 setup_native/source/win32/customactions/shellextensions/completeinstallpath.cxx |    1 -
 setup_native/source/win32/customactions/shellextensions/layerlinks.cxx          |    2 --
 setup_native/source/win32/customactions/shellextensions/migrateinstallpath.cxx  |    1 -
 setup_native/source/win32/customactions/shellextensions/startmenuicon.cxx       |    2 --
 setup_native/source/win32/customactions/shellextensions/upgrade.cxx             |    2 --
 setup_native/source/win32/customactions/shellextensions/vistaspecial.cxx        |    2 --
 sfx2/source/appl/shutdowniconw32.cxx                                            |    3 ---
 shell/Library_ooofilt.mk                                                        |    6 ++----
 shell/Library_ooofilt_x64.mk                                                    |    6 ++----
 shell/Library_propertyhdl.mk                                                    |    6 ++----
 shell/Library_propertyhdl_x64.mk                                                |    6 ++----
 shell/Library_shlxthdl.mk                                                       |    6 ++----
 shell/Library_shlxthdl_x64.mk                                                   |    6 ++----
 shell/StaticLibrary_shlxthandler_common.mk                                      |    6 ++----
 shell/StaticLibrary_shlxthandler_common_x64.mk                                  |    6 ++----
 shell/source/backends/localebe/localebackend.cxx                                |    6 ------
 shell/source/win32/shlxthandler/res/rcheader.txt                                |    1 -
 solenv/gbuild/platform/com_MSC_defs.mk                                          |    2 +-
 solenv/gbuild/platform/mingw.mk                                                 |    2 +-
 solenv/gbuild/platform/windows.mk                                               |    4 ++--
 vcl/win/source/gdi/salprn.cxx                                                   |    2 --
 64 files changed, 61 insertions(+), 135 deletions(-)

New commits:
commit f01580ce9c5f898c1fdb85e302a158f1a31205db
Author: Thomas Arnhold <thomas at arnhold.org>
Date:   Wed Nov 6 11:23:15 2013 +0100

    Windows: Require at least Windows XP SP2
    
    * Windows XP SP2 is 0x0502, see
      http://msdn.microsoft.com/en-us/library/aa383745.aspx
    * If a module changes the Windows SDK version setting,
      this is done module wide now. So the overall behavior
      is as before. This seems to be the best compromise for
      now.
    * We need at least SP2 because of the bluetooth stuff
      used in sd/source/ui/remotecontrol.
    * Now, we require at least Internet Explorer 7.0. IE6
      has been outdated for a long time.
    * Leave StdAfx.h file definitions, as those are Microsoft
      project specific precompiled header files.
    * All local definitions of WINVER are removed, because
      the global WINVER setting makes them obsolete now.
    
    To the relation of the three macros:
    
    Setting _WIN32_WINNT sets WINVER and NTDDI_VERSION
    automatically to the same value as _WIN32_WINNT.
    
    WINVER and NTDDI_VERSION can be set idenpendently each
    for itself.
    
    Change-Id: Ibcc12493aae4fcaf7bcfda88be99c1b61bc326cb
    Reviewed-on: https://gerrit.libreoffice.org/6496
    Reviewed-by: Thorsten Behrens <thb at documentfoundation.org>
    Tested-by: Thorsten Behrens <thb at documentfoundation.org>

diff --git a/canvas/Library_cairocanvas.mk b/canvas/Library_cairocanvas.mk
index 45c4824..b4654c0 100644
--- a/canvas/Library_cairocanvas.mk
+++ b/canvas/Library_cairocanvas.mk
@@ -82,6 +82,10 @@ $(eval $(call gb_Library_use_externals,cairocanvas,\
 
 ifeq ($(OS),WNT)
 
+$(eval $(call gb_Library_add_defs,cairocanvas,\
+	-D_WIN32_WINNT=0x0502 \
+))
+
 $(eval $(call gb_Library_add_exception_objects,cairocanvas,\
 	canvas/source/cairo/cairo_win32_cairo \
 ))
diff --git a/canvas/source/cairo/cairo_win32_cairo.cxx b/canvas/source/cairo/cairo_win32_cairo.cxx
index 3bf9c6d..89b786c 100644
--- a/canvas/source/cairo/cairo_win32_cairo.cxx
+++ b/canvas/source/cairo/cairo_win32_cairo.cxx
@@ -17,8 +17,6 @@
  *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
  */
 
-#define _WIN32_WINNT 0x0500
-
 #ifdef WNT
 /************************************************************************
  * Win32 surface backend for OpenOffice.org Cairo Canvas                *
diff --git a/connectivity/Library_ado.mk b/connectivity/Library_ado.mk
index a62fcba..0a559a3 100644
--- a/connectivity/Library_ado.mk
+++ b/connectivity/Library_ado.mk
@@ -34,6 +34,12 @@ $(eval $(call gb_Library_use_system_win32_libs,ado,\
 	uuid \
 ))
 
+ifeq ($(OS),WNT)
+$(eval $(call gb_Library_add_defs,ado,\
+	-D_WIN32_WINNT=0x0502 \
+))
+endif
+
 ifeq ($(WINDOWS_SDK_VERSION),80)
 $(eval $(call gb_Library_add_defs,ado,\
 	-DNTDDI_VERSION=0x0601 \
diff --git a/connectivity/source/drivers/ado/ADriver.cxx b/connectivity/source/drivers/ado/ADriver.cxx
index f55a03f..3daa811 100644
--- a/connectivity/source/drivers/ado/ADriver.cxx
+++ b/connectivity/source/drivers/ado/ADriver.cxx
@@ -17,11 +17,6 @@
  *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
  */
 
-#if defined _WIN32_WINNT
-#undef _WIN32_WINNT
-#endif
-#define _WIN32_WINNT 0x0501
-
 #include "ado/ADriver.hxx"
 #include "ado/AConnection.hxx"
 #include "ado/Awrapadox.hxx"
diff --git a/crashrep/source/win32/rcheader.txt b/crashrep/source/win32/rcheader.txt
index bace84b..dc67fee 100644
--- a/crashrep/source/win32/rcheader.txt
+++ b/crashrep/source/win32/rcheader.txt
@@ -18,7 +18,6 @@
 
 // Header
 #include "resource.h"
-#define WINVER 0x0500
 #include <winresrc.h>
 #define LB_ADDSTRING	(WM_USER+1)
 #define CB_ADDSTRING	(WM_USER+3)
diff --git a/desktop/Library_deploymentgui.mk b/desktop/Library_deploymentgui.mk
index 1fb9e33..2a13cc6 100644
--- a/desktop/Library_deploymentgui.mk
+++ b/desktop/Library_deploymentgui.mk
@@ -42,6 +42,10 @@ $(eval $(call gb_Library_use_libraries,deploymentgui,\
 
 ifeq ($(OS),WNT)
 
+$(eval $(call gb_Library_add_defs,deploymentgui,\
+    -D_WIN32_WINNT=0x0502 \
+))
+
 $(eval $(call gb_Library_use_system_win32_libs,deploymentgui,\
     ole32 \
 ))
diff --git a/desktop/source/deployment/gui/dp_gui_extensioncmdqueue.cxx b/desktop/source/deployment/gui/dp_gui_extensioncmdqueue.cxx
index 8b2cd33..706c485 100644
--- a/desktop/source/deployment/gui/dp_gui_extensioncmdqueue.cxx
+++ b/desktop/source/deployment/gui/dp_gui_extensioncmdqueue.cxx
@@ -17,10 +17,6 @@
  *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
  */
 
-#if defined WNT
-#define _WIN32_WINNT 0x0500
-#endif
-
 #include "sal/config.h"
 
 #include <cstddef>
diff --git a/embeddedobj/Library_emboleobj.mk b/embeddedobj/Library_emboleobj.mk
index 3d415f4..96f03ee 100644
--- a/embeddedobj/Library_emboleobj.mk
+++ b/embeddedobj/Library_emboleobj.mk
@@ -17,6 +17,10 @@ $(eval $(call gb_Library_set_include,emboleobj,\
 	$$(INCLUDE) \
 ))
 
+$(eval $(call gb_Library_add_defs,emboleobj,\
+	-D_WIN32_WINNT=0x0502 \
+))
+
 $(eval $(call gb_Library_use_external,emboleobj,boost_headers))
 
 $(eval $(call gb_Library_use_sdk_api,emboleobj))
diff --git a/embeddedobj/source/msole/platform.h b/embeddedobj/source/msole/platform.h
index 2a8c117..56c21a2 100644
--- a/embeddedobj/source/msole/platform.h
+++ b/embeddedobj/source/msole/platform.h
@@ -21,9 +21,6 @@
 #define _PLATFORM_H_
 
 #define STRICT
-#ifndef _WIN32_WINNT
-#define _WIN32_WINNT 0x0400
-#endif
 #define _ATL_APARTMENT_THREADED
 
 #if defined _MSC_VER
diff --git a/embedserv/Library_emser.mk b/embedserv/Library_emser.mk
index 5458ed2..a85e4c7 100644
--- a/embedserv/Library_emser.mk
+++ b/embedserv/Library_emser.mk
@@ -20,6 +20,7 @@ $(eval $(call gb_Library_set_include,emser,\
 
 $(eval $(call gb_Library_add_defs,emser,\
 	-UNOMINMAX \
+	-D_WIN32_WINNT=0x0502 \
 ))
 
 $(eval $(call gb_Library_use_external,emser,boost_headers))
diff --git a/embedserv/source/embed/esdll.cxx b/embedserv/source/embed/esdll.cxx
index b5aa6b7..52f8013 100644
--- a/embedserv/source/embed/esdll.cxx
+++ b/embedserv/source/embed/esdll.cxx
@@ -18,7 +18,6 @@
  */
 
 #define STRICT
-#define _WIN32_WINNT 0x0403
 #define _WIN32_DCOM
 #ifdef _MSC_VER
 #pragma warning(disable : 4917 4555)
diff --git a/embedserv/source/inc/stdafx.h b/embedserv/source/inc/stdafx.h
index d3109dd..abfc022 100644
--- a/embedserv/source/inc/stdafx.h
+++ b/embedserv/source/inc/stdafx.h
@@ -8,7 +8,7 @@
 
 #define STRICT
 #ifndef _WIN32_WINNT
-#define _WIN32_WINNT 0x0403
+#define _WIN32_WINNT 0x0502
 #endif
 #define _ATL_APARTMENT_THREADED
 // #define _ATL_STATIC_REGISTRY
diff --git a/extensions/Library_oleautobridge.mk b/extensions/Library_oleautobridge.mk
index 5c138a5..2c9e49c 100644
--- a/extensions/Library_oleautobridge.mk
+++ b/extensions/Library_oleautobridge.mk
@@ -24,6 +24,10 @@ $(eval $(call gb_Library_add_ldflags,oleautobridge,\
 	-LIBPATH:$(ATL_LIB) \
 ))
 
+$(eval $(call gb_Library_add_defs,oleautobridge,\
+	-D_WIN32_WINNT=0x0502 \
+))
+
 $(eval $(call gb_Library_use_external,oleautobridge,boost_headers))
 
 $(eval $(call gb_Library_use_libraries,oleautobridge,\
diff --git a/extensions/source/activex/StdAfx2.h b/extensions/source/activex/StdAfx2.h
index c1ef7e5..4d9ba1d 100644
--- a/extensions/source/activex/StdAfx2.h
+++ b/extensions/source/activex/StdAfx2.h
@@ -30,7 +30,7 @@
 
 #define STRICT
 #ifndef _WIN32_WINNT
-#define _WIN32_WINNT 0x0403
+#define _WIN32_WINNT 0x0502
 #endif
 #define _ATL_APARTMENT_THREADED
 #define _ATL_STATIC_REGISTRY
diff --git a/extensions/source/activex/so_activex.rc b/extensions/source/activex/so_activex.rc
index 2928c02..c1dca6d 100644
--- a/extensions/source/activex/so_activex.rc
+++ b/extensions/source/activex/so_activex.rc
@@ -25,7 +25,6 @@
 //
 // Generated from the TEXTINCLUDE 2 resource.
 //
-#define WINVER 0x0500
 #include <winresrc.h>
 #define LB_ADDSTRING	(WM_USER+1)
 #define CB_ADDSTRING	(WM_USER+3)
diff --git a/extensions/source/ole/oledll.cxx b/extensions/source/ole/oledll.cxx
index 6269377..d181355 100644
--- a/extensions/source/ole/oledll.cxx
+++ b/extensions/source/ole/oledll.cxx
@@ -19,7 +19,6 @@
 
 
 #define STRICT
-#define _WIN32_WINNT 0x0403
 #define _WIN32_DCOM
 
 #pragma warning (push,1)
diff --git a/extensions/source/ole/oleobjw.cxx b/extensions/source/ole/oleobjw.cxx
index f5415a6..1118f43 100644
--- a/extensions/source/ole/oleobjw.cxx
+++ b/extensions/source/ole/oleobjw.cxx
@@ -17,9 +17,6 @@
  *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
  */
 
-// http://stackoverflow.com/questions/5839292/error-c1189-after-installing-visual-studio-2010
-#define _WIN32_WINNT 0x0403
-
 #include "ole2uno.hxx"
 #include "rtl/ustrbuf.hxx"
 
diff --git a/extensions/source/ole/servprov.cxx b/extensions/source/ole/servprov.cxx
index 9e79907..cbf4645 100644
--- a/extensions/source/ole/servprov.cxx
+++ b/extensions/source/ole/servprov.cxx
@@ -17,10 +17,6 @@
  *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
  */
 
-// http://stackoverflow.com/questions/5839292/error-c1189-after-installing-visual-studio-2010
-#define _WIN32_WINNT 0x0403
-
-
 #include <vector>
 
 #ifdef __MINGW32__
diff --git a/extensions/source/ole/servreg.cxx b/extensions/source/ole/servreg.cxx
index 401b492..60e39ae 100644
--- a/extensions/source/ole/servreg.cxx
+++ b/extensions/source/ole/servreg.cxx
@@ -17,9 +17,6 @@
  *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
  */
 
-// http://stackoverflow.com/questions/5839292/error-c1189-after-installing-visual-studio-2010
-#define _WIN32_WINNT 0x0403
-
 #include <osl/time.h>
 #include "ole2uno.hxx"
 #include "servprov.hxx"
diff --git a/extensions/source/ole/unoobjw.cxx b/extensions/source/ole/unoobjw.cxx
index bac14b0..0689773 100644
--- a/extensions/source/ole/unoobjw.cxx
+++ b/extensions/source/ole/unoobjw.cxx
@@ -18,9 +18,6 @@
  */
 
 #include "ole2uno.hxx"
-#if _WIN32_WINNT != 0x403
-#error wrong _WIN32_WINNT
-#endif
 
 #include <stdio.h>
 #include <vector>
diff --git a/extensions/source/ole/wincrap.hxx b/extensions/source/ole/wincrap.hxx
index e7c3084..29801c2 100644
--- a/extensions/source/ole/wincrap.hxx
+++ b/extensions/source/ole/wincrap.hxx
@@ -22,10 +22,6 @@
 
 /* wrap all includes that need to be wrapped by presys.h/postsys.h here */
 
-// from oleobjw.hxx
-// http://stackoverflow.com/questions/5839292/error-c1189-after-installing-visual-studio-2010
-#define _WIN32_WINNT 0x0403
-
 #define STRICT
 
 #define _WIN32_DCOM
diff --git a/extensions/test/ole/AxTestComponents/StdAfx.h b/extensions/test/ole/AxTestComponents/StdAfx.h
index f25e075..eed6044 100644
--- a/extensions/test/ole/AxTestComponents/StdAfx.h
+++ b/extensions/test/ole/AxTestComponents/StdAfx.h
@@ -29,7 +29,7 @@
 
 #define STRICT
 #ifndef _WIN32_WINNT
-#define _WIN32_WINNT 0x0400
+#define _WIN32_WINNT 0x0502
 #endif
 #define _ATL_APARTMENT_THREADED
 
diff --git a/extensions/test/ole/EventListenerSample/EventListener/StdAfx.h b/extensions/test/ole/EventListenerSample/EventListener/StdAfx.h
index b27537f..08ee695 100644
--- a/extensions/test/ole/EventListenerSample/EventListener/StdAfx.h
+++ b/extensions/test/ole/EventListenerSample/EventListener/StdAfx.h
@@ -29,7 +29,7 @@
 
 #define STRICT
 #ifndef _WIN32_WINNT
-#define _WIN32_WINNT 0x0400
+#define _WIN32_WINNT 0x0502
 #endif
 #define _ATL_APARTMENT_THREADED
 
diff --git a/extensions/test/ole/unoTocomCalls/XCallback_Impl/StdAfx.h b/extensions/test/ole/unoTocomCalls/XCallback_Impl/StdAfx.h
index b35c1dd..f437729 100644
--- a/extensions/test/ole/unoTocomCalls/XCallback_Impl/StdAfx.h
+++ b/extensions/test/ole/unoTocomCalls/XCallback_Impl/StdAfx.h
@@ -29,7 +29,7 @@
 
 #define STRICT
 #ifndef _WIN32_WINNT
-#define _WIN32_WINNT 0x0400
+#define _WIN32_WINNT 0x0502
 #endif
 #define _ATL_APARTMENT_THREADED
 
diff --git a/external/libmariadb/mariadb-trunk-101.patch b/external/libmariadb/mariadb-trunk-101.patch
index a5a74a5..228bddc 100644
--- a/external/libmariadb/mariadb-trunk-101.patch
+++ b/external/libmariadb/mariadb-trunk-101.patch
@@ -240752,7 +240752,7 @@ diff -x .bzr -u --recursive -N mariadb-native-client.release/win-iconv/win_iconv
 +
 +/* for WC_NO_BEST_FIT_CHARS */
 +#ifndef WINVER
-+# define WINVER 0x0500
++# define WINVER 0x0502
 +#endif
 +
 +#define STRICT
diff --git a/external/nss/nss-3.13.3-build.patch.3 b/external/nss/nss-3.13.3-build.patch.3
index 7412c28..383b938 100644
--- a/external/nss/nss-3.13.3-build.patch.3
+++ b/external/nss/nss-3.13.3-build.patch.3
@@ -16,7 +16,7 @@
      # the dllimport attribute that a pointer to a function marked as
      # dllimport cannot be used as as a constant address.
 -    OS_CFLAGS += -mwindows -mms-bitfields -mnop-fun-dllimport
-+    OS_CFLAGS += -mwindows -mms-bitfields -mnop-fun-dllimport -D_WIN32_IE=0x0501 -U__MMX__ -U__SSE__ -U__SSE2__
++    OS_CFLAGS += -mwindows -mms-bitfields -mnop-fun-dllimport -D_WIN32_IE=0x0700 -U__MMX__ -U__SSE__ -U__SSE2__
      _GEN_IMPORT_LIB=-Wl,--out-implib,$(IMPORT_LIBRARY)
      DLLFLAGS  += -mwindows -o $@ -shared -Wl,--export-all-symbols $(if $(IMPORT_LIBRARY),$(_GEN_IMPORT_LIB))
      ifdef BUILD_OPT
diff --git a/filter/source/placeware/tempfile.cxx b/filter/source/placeware/tempfile.cxx
index 1a40047..961eaed 100644
--- a/filter/source/placeware/tempfile.cxx
+++ b/filter/source/placeware/tempfile.cxx
@@ -55,11 +55,6 @@ oslFileError SAL_CALL my_getTempDirURL( rtl_uString** pustrTempDir )
 }
 #else
 
-#ifndef _WIN32_WINNT
-#   define _WIN32_WINNT 0x0400
-#   define _CTYPE_DISABLE_MACROS /* wg. dynamischer C-Runtime MH */
-#endif
-
 #if defined _MSC_VER
 #pragma warning(push, 1)
 #endif
diff --git a/fpicker/source/win32/filepicker/FileOpenDlg.cxx b/fpicker/source/win32/filepicker/FileOpenDlg.cxx
index d56fa79..a9eee26 100644
--- a/fpicker/source/win32/filepicker/FileOpenDlg.cxx
+++ b/fpicker/source/win32/filepicker/FileOpenDlg.cxx
@@ -17,11 +17,6 @@
  *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
  */
 
-#if defined _WIN32_WINNT
-#   undef _WIN32_WINNT
-#endif
-#define _WIN32_WINNT 0x0500
-
 #include <tchar.h>
 #include <osl/diagnose.h>
 #include "../misc/WinImplHelper.hxx"
diff --git a/fpicker/source/win32/filepicker/platform_xp.h b/fpicker/source/win32/filepicker/platform_xp.h
index 6a502f6..a31cbc4 100644
--- a/fpicker/source/win32/filepicker/platform_xp.h
+++ b/fpicker/source/win32/filepicker/platform_xp.h
@@ -28,9 +28,9 @@
 #undef _WIN32_IE
 #undef _WTL_NO_CSTRING
 
-#define WINVER          0x0501
-#define _WIN32_WINNT    0x0501
-#define _WIN32_IE       0x0600
+#define WINVER          0x0502
+#define _WIN32_WINNT    0x0502
+#define _WIN32_IE       0x0700
 #define _WTL_NO_CSTRING
 
 #if defined _MSC_VER
diff --git a/i18nlangtag/source/isolang/inwnt.cxx b/i18nlangtag/source/isolang/inwnt.cxx
index e62f89e..293aa78 100644
--- a/i18nlangtag/source/isolang/inwnt.cxx
+++ b/i18nlangtag/source/isolang/inwnt.cxx
@@ -20,8 +20,6 @@
 
 #include <sal/config.h>
 
-#define WINVER 0x0500
-
 #ifdef _MSC_VER
 #pragma warning(push,1) // disable warnings within system headers
 #endif
diff --git a/odk/examples/OLE/activex/StdAfx2.h b/odk/examples/OLE/activex/StdAfx2.h
index bfb06fa..2767f4d 100644
--- a/odk/examples/OLE/activex/StdAfx2.h
+++ b/odk/examples/OLE/activex/StdAfx2.h
@@ -46,7 +46,7 @@
 
 #define STRICT
 #ifndef _WIN32_WINNT
-#define _WIN32_WINNT 0x0400
+#define _WIN32_WINNT 0x0502
 #endif
 #define _ATL_APARTMENT_THREADED
 #define _ATL_STATIC_REGISTRY
diff --git a/sal/Library_sal.mk b/sal/Library_sal.mk
index 6ba73ee..cbc52a7 100644
--- a/sal/Library_sal.mk
+++ b/sal/Library_sal.mk
@@ -229,6 +229,10 @@ else # $(OS) == WNT
 ))
 # .ENDIF
 
+$(eval $(call gb_Library_add_defs,sal,\
+	-D_WIN32_WINNT=0x0502 \
+))
+
 $(eval $(call gb_Library_add_exception_objects,sal,\
 	sal/osl/w32/file \
 	sal/osl/w32/file_dirvol \
diff --git a/sal/osl/w32/file.cxx b/sal/osl/w32/file.cxx
index 87411d8..30a4f55 100644
--- a/sal/osl/w32/file.cxx
+++ b/sal/osl/w32/file.cxx
@@ -20,7 +20,6 @@
 
 #define UNICODE
 #define _UNICODE
-#define _WIN32_WINNT 0x0500
 #include "systools/win32/uwinapi.h"
 
 #include "osl/file.hxx"
diff --git a/sal/osl/w32/file_dirvol.cxx b/sal/osl/w32/file_dirvol.cxx
index f3c97ec..071e294 100644
--- a/sal/osl/w32/file_dirvol.cxx
+++ b/sal/osl/w32/file_dirvol.cxx
@@ -19,7 +19,6 @@
 
 #define UNICODE
 #define _UNICODE
-#define _WIN32_WINNT 0x0500
 #include "systools/win32/uwinapi.h"
 
 #include "osl/file.h"
diff --git a/sal/osl/w32/file_error.c b/sal/osl/w32/file_error.c
index f1cd9ce..3bb2e49 100644
--- a/sal/osl/w32/file_error.c
+++ b/sal/osl/w32/file_error.c
@@ -19,7 +19,6 @@
 
 #define UNICODE
 #define _UNICODE
-#define _WIN32_WINNT 0x0500
 #include "systools/win32/uwinapi.h"
 
 #include "file_error.h"
diff --git a/sal/osl/w32/file_url.cxx b/sal/osl/w32/file_url.cxx
index 228e88e..978b8db 100644
--- a/sal/osl/w32/file_url.cxx
+++ b/sal/osl/w32/file_url.cxx
@@ -19,7 +19,6 @@
 
 #define UNICODE
 #define _UNICODE
-#define _WIN32_WINNT 0x0500
 #include "systools/win32/uwinapi.h"
 
 #include "file_url.h"
diff --git a/sal/osl/w32/system.h b/sal/osl/w32/system.h
index d74a587..57a7a0f 100644
--- a/sal/osl/w32/system.h
+++ b/sal/osl/w32/system.h
@@ -21,11 +21,6 @@
 #    define NO_DEBUG_CRT
 #endif
 
-#ifndef _WIN32_WINNT
-#   define _WIN32_WINNT 0x0400
-#   define _CTYPE_DISABLE_MACROS /* wg. dynamischer C-Runtime MH */
-#endif
-
 #include <stdio.h>
 #include <stdlib.h>
 #include <stdarg.h>
diff --git a/sal/osl/w32/tempfile.cxx b/sal/osl/w32/tempfile.cxx
index 731dd43..d854103 100644
--- a/sal/osl/w32/tempfile.cxx
+++ b/sal/osl/w32/tempfile.cxx
@@ -19,7 +19,6 @@
 
 #define UNICODE
 #define _UNICODE
-#define _WIN32_WINNT 0x0500
 #include "systools/win32/uwinapi.h"
 
 #include "osl/file.h"
diff --git a/setup_native/Library_sellangmsi.mk b/setup_native/Library_sellangmsi.mk
index 2df29fc..204e22f 100644
--- a/setup_native/Library_sellangmsi.mk
+++ b/setup_native/Library_sellangmsi.mk
@@ -15,6 +15,8 @@ $(eval $(call gb_Library_use_custom_headers,sellangmsi,\
 
 $(eval $(call gb_Library_add_defs,sellangmsi,\
 	-U_DLL \
+	-D_WIN32_WINNT=0x0502 \
+	-DWIN32_LEAN_AND_MEAN \
 ))
 
 $(eval $(call gb_Library_add_cxxflags,sellangmsi,\
diff --git a/setup_native/Library_shlxtmsi.mk b/setup_native/Library_shlxtmsi.mk
index 84fbe72..9d0186a 100644
--- a/setup_native/Library_shlxtmsi.mk
+++ b/setup_native/Library_shlxtmsi.mk
@@ -13,6 +13,7 @@ $(eval $(call gb_Library_use_external,shlxtmsi,boost_headers))
 
 $(eval $(call gb_Library_add_defs,shlxtmsi,\
 	-U_DLL \
+	-D_WIN32_WINNT=0x0502 \
 ))
 
 $(eval $(call gb_Library_add_cxxflags,shlxtmsi,\
diff --git a/setup_native/source/win32/customactions/sellang/sellang.cxx b/setup_native/source/win32/customactions/sellang/sellang.cxx
index 06c4c02..46b500b 100644
--- a/setup_native/source/win32/customactions/sellang/sellang.cxx
+++ b/setup_native/source/win32/customactions/sellang/sellang.cxx
@@ -22,11 +22,6 @@
  */
 #define MAX_LANGUAGES 200
 
-#define WIN32_LEAN_AND_MEAN
-#define _WIN32_WINNT 0x0500
-#undef WINVER
-#define WINVER 0x0500
-
 #include <windows.h>
 #include <msiquery.h>
 #include <malloc.h>
diff --git a/setup_native/source/win32/customactions/shellextensions/checkdirectory.cxx b/setup_native/source/win32/customactions/shellextensions/checkdirectory.cxx
index 7b35b3c..1a4f4f0 100644
--- a/setup_native/source/win32/customactions/shellextensions/checkdirectory.cxx
+++ b/setup_native/source/win32/customactions/shellextensions/checkdirectory.cxx
@@ -17,8 +17,6 @@
  *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
  */
 
-#define _WIN32_WINNT 0x0401
-
 #ifdef _MSC_VER
 #pragma warning(push, 1) /* disable warnings within system headers */
 #endif
diff --git a/setup_native/source/win32/customactions/shellextensions/checkpatches.cxx b/setup_native/source/win32/customactions/shellextensions/checkpatches.cxx
index 94a24cd..4207837 100644
--- a/setup_native/source/win32/customactions/shellextensions/checkpatches.cxx
+++ b/setup_native/source/win32/customactions/shellextensions/checkpatches.cxx
@@ -17,8 +17,6 @@
  *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
  */
 
-#define _WIN32_WINNT 0x0401
-
 #ifdef _MSC_VER
 #pragma warning(push, 1) /* disable warnings within system headers */
 #endif
diff --git a/setup_native/source/win32/customactions/shellextensions/completeinstallpath.cxx b/setup_native/source/win32/customactions/shellextensions/completeinstallpath.cxx
index 7def8af..30cc424 100644
--- a/setup_native/source/win32/customactions/shellextensions/completeinstallpath.cxx
+++ b/setup_native/source/win32/customactions/shellextensions/completeinstallpath.cxx
@@ -17,7 +17,6 @@
  *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
  */
 
-#define _WIN32_WINDOWS 0x0410
 #ifdef _MSC_VER
 #pragma warning(push, 1) /* disable warnings within system headers */
 #endif
diff --git a/setup_native/source/win32/customactions/shellextensions/layerlinks.cxx b/setup_native/source/win32/customactions/shellextensions/layerlinks.cxx
index 88e020f..680fc41 100644
--- a/setup_native/source/win32/customactions/shellextensions/layerlinks.cxx
+++ b/setup_native/source/win32/customactions/shellextensions/layerlinks.cxx
@@ -20,8 +20,6 @@
 #undef UNICODE
 #undef _UNICODE
 
-#define _WIN32_WINDOWS 0x0410
-
 #ifdef _MSC_VER
 #pragma warning(push, 1) /* disable warnings within system headers */
 #endif
diff --git a/setup_native/source/win32/customactions/shellextensions/migrateinstallpath.cxx b/setup_native/source/win32/customactions/shellextensions/migrateinstallpath.cxx
index 1b159fd..26a6760 100644
--- a/setup_native/source/win32/customactions/shellextensions/migrateinstallpath.cxx
+++ b/setup_native/source/win32/customactions/shellextensions/migrateinstallpath.cxx
@@ -17,7 +17,6 @@
  *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
  */
 
-#define _WIN32_WINDOWS 0x0410
 #ifdef _MSC_VER
 #pragma warning(push, 1) /* disable warnings within system headers */
 #endif
diff --git a/setup_native/source/win32/customactions/shellextensions/startmenuicon.cxx b/setup_native/source/win32/customactions/shellextensions/startmenuicon.cxx
index de3f3f6..f983338 100644
--- a/setup_native/source/win32/customactions/shellextensions/startmenuicon.cxx
+++ b/setup_native/source/win32/customactions/shellextensions/startmenuicon.cxx
@@ -17,8 +17,6 @@
  *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
  */
 
-#define _WIN32_WINDOWS 0x0410
-
 #ifdef _MSC_VER
 #pragma warning(push, 1) /* disable warnings within system headers */
 #endif
diff --git a/setup_native/source/win32/customactions/shellextensions/upgrade.cxx b/setup_native/source/win32/customactions/shellextensions/upgrade.cxx
index 8465011..5cbfe6a 100644
--- a/setup_native/source/win32/customactions/shellextensions/upgrade.cxx
+++ b/setup_native/source/win32/customactions/shellextensions/upgrade.cxx
@@ -20,8 +20,6 @@
 #undef UNICODE
 #undef _UNICODE
 
-#define _WIN32_WINDOWS 0x0410
-
 #ifdef _MSC_VER
 #pragma warning(push, 1) /* disable warnings within system headers */
 #endif
diff --git a/setup_native/source/win32/customactions/shellextensions/vistaspecial.cxx b/setup_native/source/win32/customactions/shellextensions/vistaspecial.cxx
index 7011fcd..fb106d7 100644
--- a/setup_native/source/win32/customactions/shellextensions/vistaspecial.cxx
+++ b/setup_native/source/win32/customactions/shellextensions/vistaspecial.cxx
@@ -17,8 +17,6 @@
  *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
  */
 
-#define _WIN32_WINNT 0x0401
-
 #ifdef _MSC_VER
 #pragma warning(push, 1) /* disable warnings within system headers */
 #endif
diff --git a/sfx2/source/appl/shutdowniconw32.cxx b/sfx2/source/appl/shutdowniconw32.cxx
index c720328..8c7a6a1 100644
--- a/sfx2/source/appl/shutdowniconw32.cxx
+++ b/sfx2/source/appl/shutdowniconw32.cxx
@@ -25,9 +25,6 @@
 #pragma warning(disable:4668 4917)
 #endif
 
-// Support Windows 95 too
-#undef WINVER
-#define WINVER 0x0400
 #define USE_APP_SHORTCUTS
 // the systray icon is only available on windows
 
diff --git a/shell/Library_ooofilt.mk b/shell/Library_ooofilt.mk
index d8f68b0..f997eea 100644
--- a/shell/Library_ooofilt.mk
+++ b/shell/Library_ooofilt.mk
@@ -19,10 +19,8 @@ $(eval $(call gb_Library_add_defs,ooofilt,\
 	-DUNICODE \
 	-DWIN32_LEAN_AND_MEAN \
 	-D_UNICODE \
-))
-$(eval $(call gb_Library_add_defs,ooofilt,\
-	-D_WIN32_IE=0x501 \
-	-D_WIN32_WINNT=0x0501 \
+	-D_WIN32_IE=0x700 \
+	-D_WIN32_WINNT=0x0502 \
 	-UNOMINMAX \
 ))
 
diff --git a/shell/Library_ooofilt_x64.mk b/shell/Library_ooofilt_x64.mk
index c32a512..8f994dc 100644
--- a/shell/Library_ooofilt_x64.mk
+++ b/shell/Library_ooofilt_x64.mk
@@ -26,10 +26,8 @@ $(eval $(call gb_Library_add_defs,ooofilt_x64,\
 	-DWIN32_LEAN_AND_MEAN \
 	-D_UNICODE \
 	-UNOMINMAX \
-))
-$(eval $(call gb_Library_add_defs,ooofilt_x64,\
-	-D_WIN32_IE=0x501 \
-	-D_WIN32_WINNT=0x0501 \
+	-D_WIN32_IE=0x700 \
+	-D_WIN32_WINNT=0x0502 \
 ))
 
 $(eval $(call gb_Library_use_externals,ooofilt_x64,\
diff --git a/shell/Library_propertyhdl.mk b/shell/Library_propertyhdl.mk
index 70b2763..6ea684f 100644
--- a/shell/Library_propertyhdl.mk
+++ b/shell/Library_propertyhdl.mk
@@ -20,10 +20,8 @@ $(eval $(call gb_Library_add_defs,propertyhdl,\
 	-DWIN32_LEAN_AND_MEAN \
 	-D_UNICODE \
 	-UNOMINMAX \
-))
-$(eval $(call gb_Library_add_defs,propertyhdl,\
-	-D_WIN32_IE=0x501 \
-	-D_WIN32_WINNT=0x0501 \
+	-D_WIN32_IE=0x700 \
+	-D_WIN32_WINNT=0x0502 \
 ))
 
 $(eval $(call gb_Library_use_externals,propertyhdl,\
diff --git a/shell/Library_propertyhdl_x64.mk b/shell/Library_propertyhdl_x64.mk
index d73126a..29f3899 100644
--- a/shell/Library_propertyhdl_x64.mk
+++ b/shell/Library_propertyhdl_x64.mk
@@ -26,10 +26,8 @@ $(eval $(call gb_Library_add_defs,propertyhdl_x64,\
 	-DWIN32_LEAN_AND_MEAN \
 	-D_UNICODE \
 	-UNOMINMAX \
-))
-$(eval $(call gb_Library_add_defs,propertyhdl_x64,\
-	-D_WIN32_IE=0x501 \
-	-D_WIN32_WINNT=0x0501 \
+	-D_WIN32_IE=0x700 \
+	-D_WIN32_WINNT=0x0502 \
 ))
 
 $(eval $(call gb_Library_use_externals,propertyhdl_x64,\
diff --git a/shell/Library_shlxthdl.mk b/shell/Library_shlxthdl.mk
index 9cd0cea..f79dc85 100644
--- a/shell/Library_shlxthdl.mk
+++ b/shell/Library_shlxthdl.mk
@@ -20,10 +20,8 @@ $(eval $(call gb_Library_add_defs,shlxthdl,\
 	-DWIN32_LEAN_AND_MEAN \
 	-D_UNICODE \
 	-UNOMINMAX \
-))
-$(eval $(call gb_Library_add_defs,shlxthdl,\
-	-D_WIN32_IE=0x501 \
-	-D_WIN32_WINNT=0x0501 \
+	-D_WIN32_IE=0x700 \
+	-D_WIN32_WINNT=0x0502 \
 ))
 
 $(eval $(call gb_Library_use_externals,shlxthdl,\
diff --git a/shell/Library_shlxthdl_x64.mk b/shell/Library_shlxthdl_x64.mk
index eef8081..dfd694d 100644
--- a/shell/Library_shlxthdl_x64.mk
+++ b/shell/Library_shlxthdl_x64.mk
@@ -26,10 +26,8 @@ $(eval $(call gb_Library_add_defs,shlxthdl_x64,\
 	-DWIN32_LEAN_AND_MEAN \
 	-D_UNICODE \
 	-UNOMINMAX \
-))
-$(eval $(call gb_Library_add_defs,shlxthdl_x64,\
-	-D_WIN32_IE=0x501 \
-	-D_WIN32_WINNT=0x0501 \
+	-D_WIN32_IE=0x700 \
+	-D_WIN32_WINNT=0x0502 \
 ))
 
 $(eval $(call gb_Library_use_externals,shlxthdl_x64,\
diff --git a/shell/StaticLibrary_shlxthandler_common.mk b/shell/StaticLibrary_shlxthandler_common.mk
index 1114b6a..e6a47ac 100644
--- a/shell/StaticLibrary_shlxthandler_common.mk
+++ b/shell/StaticLibrary_shlxthandler_common.mk
@@ -19,10 +19,8 @@ $(eval $(call gb_StaticLibrary_add_defs,shlxthandler_common,\
 	-DUNICODE \
 	-DWIN32_LEAN_AND_MEAN \
 	-D_UNICODE \
-))
-$(eval $(call gb_StaticLibrary_add_defs,shlxthandler_common,\
-	-D_WIN32_IE=0x501 \
-	-D_WIN32_WINNT=0x0501 \
+	-D_WIN32_IE=0x700 \
+	-D_WIN32_WINNT=0x0502 \
 ))
 
 $(eval $(call gb_StaticLibrary_use_externals,shlxthandler_common,\
diff --git a/shell/StaticLibrary_shlxthandler_common_x64.mk b/shell/StaticLibrary_shlxthandler_common_x64.mk
index 106c9c5..3456c0b 100644
--- a/shell/StaticLibrary_shlxthandler_common_x64.mk
+++ b/shell/StaticLibrary_shlxthandler_common_x64.mk
@@ -25,10 +25,8 @@ $(eval $(call gb_StaticLibrary_add_defs,shlxthandler_common_x64,\
 	-DUNICODE \
 	-DWIN32_LEAN_AND_MEAN \
 	-D_UNICODE \
-))
-$(eval $(call gb_StaticLibrary_add_defs,shlxthandler_common_x64,\
-	-D_WIN32_IE=0x501 \
-	-D_WIN32_WINNT=0x0501 \
+	-D_WIN32_IE=0x700 \
+	-D_WIN32_WINNT=0x0502 \
 ))
 
 $(eval $(call gb_StaticLibrary_use_externals,shlxthandler_common_x64,\
diff --git a/shell/source/backends/localebe/localebackend.cxx b/shell/source/backends/localebe/localebackend.cxx
index 02bdc97..2d38cd2 100644
--- a/shell/source/backends/localebe/localebackend.cxx
+++ b/shell/source/backends/localebe/localebackend.cxx
@@ -26,12 +26,6 @@
 #include <stdio.h>
 
 #ifdef WNT
-
-#ifdef WINVER
-#undef WINVER
-#endif
-#define WINVER 0x0501
-
 #if defined _MSC_VER
 #pragma warning(push, 1)
 #endif
diff --git a/shell/source/win32/shlxthandler/res/rcheader.txt b/shell/source/win32/shlxthandler/res/rcheader.txt
index f2d716b..065bf2a 100644
--- a/shell/source/win32/shlxthandler/res/rcheader.txt
+++ b/shell/source/win32/shlxthandler/res/rcheader.txt
@@ -1,4 +1,3 @@
-#define WINVER 0x0500
 #include <winresrc.h>
 #define LB_ADDSTRING	(WM_USER+1)
 #define CB_ADDSTRING	(WM_USER+3)
diff --git a/solenv/gbuild/platform/com_MSC_defs.mk b/solenv/gbuild/platform/com_MSC_defs.mk
index c76d65a..f002d51 100644
--- a/solenv/gbuild/platform/com_MSC_defs.mk
+++ b/solenv/gbuild/platform/com_MSC_defs.mk
@@ -57,7 +57,7 @@ gb_COMPILERDEFS += \
 endif
 
 gb_RCDEFS := \
-	-DWINVER=0x0400 \
+	-DWINVER=0x0502 \
 	-DWIN32 \
 
 gb_RCFLAGS :=
diff --git a/solenv/gbuild/platform/mingw.mk b/solenv/gbuild/platform/mingw.mk
index 53533e7..fe04223 100644
--- a/solenv/gbuild/platform/mingw.mk
+++ b/solenv/gbuild/platform/mingw.mk
@@ -26,7 +26,7 @@ gb_COMPILERDEFS += \
 	-D_FORCENAMELESSUNION \
 
 gb_RCDEFS := \
-	-DWINVER=0x0400 \
+	-DWINVER=0x0502 \
 	-DWIN32 \
 
 gb_RCFLAGS :=
diff --git a/solenv/gbuild/platform/windows.mk b/solenv/gbuild/platform/windows.mk
index bc2dad1..02428ca 100644
--- a/solenv/gbuild/platform/windows.mk
+++ b/solenv/gbuild/platform/windows.mk
@@ -18,8 +18,8 @@ gb_Helper_LIBRARY_PATH_VAR := PATH
 gb_MKTEMP := mktemp --tmpdir=$(gb_TMPDIR) gbuild.XXXXXX
 
 gb_OSDEFS := \
-	-DWINVER=0x0500 \
-	-D_WIN32_IE=0x0500 \
+	-DWINVER=0x0502 \
+	-D_WIN32_IE=0x0700 \
 	-DWIN32 \
 	-DWNT \
 	-DNOMINMAX \
diff --git a/vcl/win/source/gdi/salprn.cxx b/vcl/win/source/gdi/salprn.cxx
index dae08dd..7b8edec 100644
--- a/vcl/win/source/gdi/salprn.cxx
+++ b/vcl/win/source/gdi/salprn.cxx
@@ -17,8 +17,6 @@
  *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
  */
 
-#define WINVER 0x0500
-
 #include <string.h>
 
 #include <svsys.h>


More information about the Libreoffice-commits mailing list