diff options
author | Noel Grandin <noel@peralex.com> | 2016-02-16 11:26:51 +0200 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2016-02-16 10:37:55 +0000 |
commit | ce43d0ae9279edbf1ad108fe0d8325327a038d49 (patch) | |
tree | a0fbf7bbd608d1185005a0de36496c6f3656e798 /onlineupdate/source/libmar | |
parent | coverity#1352448 Use of untrusted scalar value (diff) | |
download | core-ce43d0ae9279edbf1ad108fe0d8325327a038d49.tar.gz core-ce43d0ae9279edbf1ad108fe0d8325327a038d49.zip |
use consistent #define checks for the Windows platform
stage 1 of replacing usage of various checks for the windows platform
with the compiler-defined '_WIN32' macro
Change-Id: Iece73abdee530937e0737190b1aa97a46cd3075f
Reviewed-on: https://gerrit.libreoffice.org/22390
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Michael Stahl <mstahl@redhat.com>
Diffstat (limited to 'onlineupdate/source/libmar')
-rw-r--r-- | onlineupdate/source/libmar/inc/mozilla/Assertions.h | 2 | ||||
-rw-r--r-- | onlineupdate/source/libmar/inc/mozilla/Types.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/onlineupdate/source/libmar/inc/mozilla/Assertions.h b/onlineupdate/source/libmar/inc/mozilla/Assertions.h index c72e020806cd..5669091bbb8e 100644 --- a/onlineupdate/source/libmar/inc/mozilla/Assertions.h +++ b/onlineupdate/source/libmar/inc/mozilla/Assertions.h @@ -24,7 +24,7 @@ #include <stddef.h> #include <stdio.h> #include <stdlib.h> -#ifdef WIN32 +#ifdef _WIN32 /* * TerminateProcess and GetCurrentProcess are defined in <winbase.h>, which * further depends on <windef.h>. We hardcode these few definitions manually diff --git a/onlineupdate/source/libmar/inc/mozilla/Types.h b/onlineupdate/source/libmar/inc/mozilla/Types.h index a5d936389d99..9d1e34b6d1d6 100644 --- a/onlineupdate/source/libmar/inc/mozilla/Types.h +++ b/onlineupdate/source/libmar/inc/mozilla/Types.h @@ -37,7 +37,7 @@ * These macros are designed for use by library interfaces -- not for normal * methods or data used cross-file. */ -#if defined(WIN32) +#if defined(_WIN32) # define MOZ_EXPORT __declspec(dllexport) #else /* Unix */ # ifdef HAVE_VISIBILITY_ATTRIBUTE |