From 889f0951107198c9a28e28ec8bd006995212d7d9 Mon Sep 17 00:00:00 2001 From: Erwin Janssen Date: Thu, 16 Mar 2017 11:36:08 +0100 Subject: [PATCH] Replace WIN32_DLL with _WIN32 in vplugin_core.c This define check should only be triggerd on Windows. Using the compiler set `_WIN32` to check if Windows is the platform is better than using a user set define. --- plugin/core/gvplugin_core.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/plugin/core/gvplugin_core.c b/plugin/core/gvplugin_core.c index f0847dfde..116758336 100644 --- a/plugin/core/gvplugin_core.c +++ b/plugin/core/gvplugin_core.c @@ -2,7 +2,7 @@ /* vim:set shiftwidth=4 ts=8: */ /************************************************************************* - * Copyright (c) 2011 AT&T Intellectual Property + * Copyright (c) 2011 AT&T Intellectual Property * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at @@ -80,7 +80,7 @@ static gvplugin_api_t apis[] = { {(api_t)0, 0}, }; -#ifdef WIN32_DLL +#ifdef _WIN32 #ifndef GVPLUGIN_CORE_EXPORTS __declspec(dllimport) gvplugin_library_t gvplugin_core_LTX_library = { "core", apis }; #else @@ -90,12 +90,10 @@ __declspec(dllexport) gvplugin_library_t gvplugin_core_LTX_library = { "core", a -#ifndef WIN32_DLL +#ifndef _WIN32 #ifdef GVDLL __declspec(dllexport) gvplugin_library_t gvplugin_core_LTX_library = { "core", apis }; #else gvplugin_library_t gvplugin_core_LTX_library = { "core", apis }; #endif #endif - - -- 2.40.0