From 5879cf0c50cecded79224b5207be9a83c204ccad Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Fri, 5 Mar 2021 19:18:09 +0100 Subject: Fix support for fake methods MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- fake-w32-gdi.h | 24 ++++-------------------- 1 file changed, 4 insertions(+), 20 deletions(-) (limited to 'fake-w32-gdi.h') diff --git a/fake-w32-gdi.h b/fake-w32-gdi.h index bcc2fa9..afbbc4b 100644 --- a/fake-w32-gdi.h +++ b/fake-w32-gdi.h @@ -1,17 +1,5 @@ /* See LICENSE file for copyright and license details. */ -#ifndef LIBGAMMA_FAKE_W32_GDI_H -#define LIBGAMMA_FAKE_W32_GDI_H - -#ifndef FAKE_LIBGAMMA_METHOD_W32_GDI -# error Including fake-w32-gdi.h without FAKE_LIBGAMMA_METHOD_W32_GDI -#endif - - -#ifndef __GNUC__ -# define __attribute__(x) -#endif - -#include +#ifdef IN_LIBGAMMA_W32_GDI /** @@ -125,7 +113,8 @@ int ReleaseDC(HWND, HDC); * if `nIndex` is `COLORMGMTCAPS` * @see http://msdn.microsoft.com/en-us/library/windows/desktop/dd144877(v=vs.85).aspx */ -int GetDeviceCaps(HDC, int) __attribute__((const)); +LIBGAMMA_GCC_ONLY__(__attribute__((__const__))) +int GetDeviceCaps(HDC, int); /** * Colour management capabilities @@ -237,12 +226,7 @@ typedef DISPLAY_DEVICE *PDISPLAY_DEVICE; * is greater than the largest device index on the system * @see http://msdn.microsoft.com/en-us/library/windows/desktop/dd162609(v=vs.85).aspx */ -BOOL EnumDisplayDevices(LPCTSTR restrict, DWORD, PDISPLAY_DEVICE restrict, DWORD) - +BOOL EnumDisplayDevices(LPCTSTR restrict, DWORD, PDISPLAY_DEVICE restrict, DWORD); -#ifndef __GNUC__ -# undef __attribute__ -#endif - #endif -- cgit v1.2.3-70-g09d2