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 /method-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-- | method-w32-gdi.h | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/method-w32-gdi.h b/method-w32-gdi.h index d78af91..811c546 100644 --- a/method-w32-gdi.h +++ b/method-w32-gdi.h @@ -1,14 +1,13 @@ /* See LICENSE file for copyright and license details. */ -#ifndef WINVER -# define WINVER 0x0500 -#endif -#ifdef FAKE_LIBGAMMA_METHOD_W32_GDI -# include "fake-w32-gdi.h" -#else -# include <windows.h> -# include <wingdi.h> -#endif +#ifdef IN_LIBGAMMA_W32_GDI +# ifndef WINVER +# define WINVER 0x0500 +# endif +# ifndef FAKE_LIBGAMMA_METHOD_W32_GDI +# include <windows.h> +# include <wingdi.h> +# endif /** @@ -16,7 +15,8 @@ * * @see http://msdn.microsoft.com/en-us/library/windows/desktop/dd372194(v=vs.85).aspx */ -#define W32_GDI_GAMMA_RAMP_SIZE 256 +# define W32_GDI_GAMMA_RAMP_SIZE 256 +#endif @@ -41,7 +41,7 @@ void libgamma_w32_gdi_method_capabilities(libgamma_method_capabilities_t *restri * @return Zero on success, otherwise (negative) the value of an * error identifier provided by this library */ -LIBGAMMA_GCC_ONLY__(__attribute__((__nonnull__(1))) +LIBGAMMA_GCC_ONLY__(__attribute__((__nonnull__(1)))) int libgamma_w32_gdi_site_initialise(libgamma_site_state_t *restrict, char *restrict); /** |