From 6371e83259c33330c8d25b4d72078b39f12294ac Mon Sep 17 00:00:00 2001 From: Francois Gouget Date: Fri, 13 Oct 2000 23:12:19 +0000 Subject: [PATCH] Added a NOGDI protection. Replaced _MAX_PATH with MAX_PATH. #undef can be used directly on TRANSPARENT. --- include/wingdi.h | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/include/wingdi.h b/include/wingdi.h index 30b442d6f64..f3bef0e472a 100644 --- a/include/wingdi.h +++ b/include/wingdi.h @@ -1,11 +1,11 @@ -#ifndef __WINE_WINGDI_H -#define __WINE_WINGDI_H +#ifndef _WINGDI_ +#define _WINGDI_ +#ifndef NOGDI #ifdef __cplusplus extern "C" { #endif -#define _WINGDI_ #include "pshpack1.h" @@ -165,7 +165,7 @@ typedef struct tagLOGCOLORSPACEA DWORD lcsGammaRed; DWORD lcsGammaGreen; DWORD lcsGammaBlue; - CHAR lcsFilename[_MAX_PATH]; + CHAR lcsFilename[MAX_PATH]; } LOGCOLORSPACEA, *LPLOGCOLORSPACEA; typedef struct tagLOGCOLORSPACEW @@ -179,7 +179,7 @@ typedef struct tagLOGCOLORSPACEA DWORD lcsGammaRed; DWORD lcsGammaGreen; DWORD lcsGammaBlue; - WCHAR lcsFilename[_MAX_PATH]; + WCHAR lcsFilename[MAX_PATH]; } LOGCOLORSPACEW, *LPLOGCOLORSPACEW; DECL_WINELIB_TYPE_AW(LPLOGCOLORSPACE) @@ -1437,10 +1437,9 @@ typedef struct tagEXTLOGPEN #define WINDING 2 #define POLYFILL_LAST 2 - /* Background modes */ -#ifdef TRANSPARENT /*Apparently some broken svr4 includes define TRANSPARENT*/ +/* Background modes */ +/* Apparently some broken svr4 includes define TRANSPARENT */ #undef TRANSPARENT -#endif #define TRANSPARENT 1 #define OPAQUE 2 #define BKMODE_LAST 2 @@ -3354,4 +3353,5 @@ BOOL WINAPI PolyTextOutW(HDC,PPOLYTEXTW,INT); } #endif -#endif /* __WINE_WINGDI_H */ +#endif /* !NOGDI */ +#endif /* _WINGDI_ */