diff options
Diffstat (limited to 'test/khronos_typedefs_nonepoxy.c')
-rw-r--r-- | test/khronos_typedefs_nonepoxy.c | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/test/khronos_typedefs_nonepoxy.c b/test/khronos_typedefs_nonepoxy.c index 56ee814..64d5a1b 100644 --- a/test/khronos_typedefs_nonepoxy.c +++ b/test/khronos_typedefs_nonepoxy.c @@ -24,9 +24,12 @@ #include <stdio.h> #include <stdlib.h> +#include "config.h" #include "khronos_typedefs.h" -#include "epoxy/khrplatform.h" +#ifdef HAVE_KHRPLATFORM_H + +#include <KHR/khrplatform.h> #define GET_SIZE(type) sizes[type ## _slot] = sizeof(type) @@ -50,3 +53,17 @@ get_system_typedef_sizes(uint32_t *sizes) GET_SIZE(khronos_stime_nanoseconds_t); GET_SIZE(khronos_boolean_enum_t); } + +#else /* !HAVE_KHRPLATFORM_H */ + +/* Don't care -- this is a conditional case in test code. */ +#pragma GCC diagnostic ignored "-Wsuggest-attribute=noreturn" + +void +get_system_typedef_sizes(uint32_t *sizes) +{ + fprintf(stderr, "./configure failed to find khrplatform.h\n"); + exit(77); +} + +#endif |