From 42e811a80a3c6f0ca5da359c4a526a1cc3e0d528 Mon Sep 17 00:00:00 2001 From: A_GAN Date: Sat, 25 Jan 2020 04:33:09 +0200 Subject: tdf#130137 Replace remaining uses of WNT define checks with _WIN32 Change-Id: If95f1ea5a81de62eb4f725e5fcb30ccb8530062a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87372 Tested-by: Jenkins Reviewed-by: Mike Kaganski --- onlineupdate/source/update/updater/archivereader.cxx | 2 +- onlineupdate/source/update/updater/progressui_win.cxx | 2 +- onlineupdate/source/update/updater/updater.cxx | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) (limited to 'onlineupdate') diff --git a/onlineupdate/source/update/updater/archivereader.cxx b/onlineupdate/source/update/updater/archivereader.cxx index bb548b919a0b..d669211437e9 100644 --- a/onlineupdate/source/update/updater/archivereader.cxx +++ b/onlineupdate/source/update/updater/archivereader.cxx @@ -33,7 +33,7 @@ #if defined(UNIX) # include -#elif defined(WNT) +#elif defined(_WIN32) # include #endif diff --git a/onlineupdate/source/update/updater/progressui_win.cxx b/onlineupdate/source/update/updater/progressui_win.cxx index 12a80f3f7c91..0b8017823486 100644 --- a/onlineupdate/source/update/updater/progressui_win.cxx +++ b/onlineupdate/source/update/updater/progressui_win.cxx @@ -345,4 +345,4 @@ UpdateProgressUI(float progress) { sProgress = progress; // 32-bit writes are atomic } -#endif // WNT +#endif // _WIN32 diff --git a/onlineupdate/source/update/updater/updater.cxx b/onlineupdate/source/update/updater/updater.cxx index 05515bef3d35..006e2ffe5a94 100644 --- a/onlineupdate/source/update/updater/updater.cxx +++ b/onlineupdate/source/update/updater/updater.cxx @@ -2158,7 +2158,7 @@ LaunchCallbackApp(const NS_tchar *workingDir, execv(argv[0], argv); #elif defined(MACOSX) LaunchChild(argc, (const char**)argv); -#elif defined(WNT) +#elif defined(_WIN32) // Do not allow the callback to run when running an update through the // service as session 0. The unelevated updater.exe will do the launching. if (!usingService) @@ -2365,7 +2365,7 @@ ProcessReplaceRequest() NS_tchar destDir[MAXPATHLEN]; NS_tsnprintf(destDir, sizeof(destDir)/sizeof(destDir[0]), NS_T("%s/Contents"), gInstallDirPath); -#elif defined(WNT) +#elif defined(_WIN32) // Windows preserves the case of the file/directory names. We use the // GetLongPathName API in order to get the correct case for the directory // name, so that if the user has used a different case when launching the @@ -3828,7 +3828,7 @@ int NS_main(int argc, NS_tchar **argv) "directory: " LOG_S, DELETE_DIR)); } } -#endif /* WNT */ +#endif /* _WIN32 */ #ifdef MACOSX -- cgit