From f42bc61b86d4ec1372c7e233461c4d240e5b3cfb Mon Sep 17 00:00:00 2001 From: Rolf Kalbermatter Date: Mon, 22 Sep 2003 19:22:14 +0000 Subject: [PATCH] Don't redefine declspec under MSVC. --- include/windef.h | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/include/windef.h b/include/windef.h index 4841843ab0c..765f451615e 100644 --- a/include/windef.h +++ b/include/windef.h @@ -113,11 +113,13 @@ extern "C" { #define FAR __ONLY_IN_WINELIB() #endif -#ifndef _declspec -#define _declspec(x) __ONLY_IN_WINELIB() -#endif -#ifndef __declspec -#define __declspec(x) __ONLY_IN_WINELIB() +#ifndef _MSC_VER +# ifndef _declspec +# define _declspec(x) __ONLY_IN_WINELIB() +# endif +# ifndef __declspec +# define __declspec(x) __ONLY_IN_WINELIB() +# endif #endif #define CALLBACK __stdcall