diff options
author | Mattias Andrée <maandree@kth.se> | 2021-03-05 19:18:09 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2021-03-05 19:18:09 +0100 |
commit | 5879cf0c50cecded79224b5207be9a83c204ccad (patch) | |
tree | 248c8b03d86b1679cfdb42b4f274839a8f981272 /fake-w32-gdi.h | |
parent | Update todo (diff) | |
download | libgamma-5879cf0c50cecded79224b5207be9a83c204ccad.tar.gz libgamma-5879cf0c50cecded79224b5207be9a83c204ccad.tar.bz2 libgamma-5879cf0c50cecded79224b5207be9a83c204ccad.tar.xz |
Fix support for fake methods
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r-- | fake-w32-gdi.h | 24 |
1 files changed, 4 insertions, 20 deletions
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 <stdint.h> +#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 |