From 4e0dc2bed9493b2ae8b380e757da3a07757c3f78 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Wed, 28 May 2014 05:17:14 +0200 Subject: namespace some definitions MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- test/test.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'test') diff --git a/test/test.c b/test/test.c index 65a65b6..43541d0 100644 --- a/test/test.c +++ b/test/test.c @@ -25,14 +25,14 @@ static const char* method_name(int method) { switch (method) { - case GAMMA_METHOD_DUMMY: return "dummy"; - case GAMMA_METHOD_X_RANDR: return "RandR X extension"; - case GAMMA_METHOD_X_VIDMODE: return "VidMode X extension"; - case GAMMA_METHOD_LINUX_DRM: return "Linux DRM"; - case GAMMA_METHOD_W32_GDI: return "Windows GDI"; - case GAMMA_METHOD_QUARTZ_CORE_GRAPHICS: return "Quartz using Core Graphics"; + case LIBGAMMA_METHOD_DUMMY: return "dummy"; + case LIBGAMMA_METHOD_X_RANDR: return "RandR X extension"; + case LIBGAMMA_METHOD_X_VIDMODE: return "VidMode X extension"; + case LIBGAMMA_METHOD_LINUX_DRM: return "Linux DRM"; + case LIBGAMMA_METHOD_W32_GDI: return "Windows GDI"; + case LIBGAMMA_METHOD_QUARTZ_CORE_GRAPHICS: return "Quartz using Core Graphics"; default: -#if GAMMA_METHOD_COUNT != 6 +#if LIBGAMMA_METHOD_COUNT != 6 # warning List of adjustment methods is out of date #endif return "(unknown)"; @@ -42,11 +42,11 @@ static const char* method_name(int method) int main(void) { - int* methods = malloc(GAMMA_METHOD_COUNT * sizeof(int)); - size_t n = libgamma_list_methods(methods, GAMMA_METHOD_COUNT, 0); + int* methods = malloc(LIBGAMMA_METHOD_COUNT * sizeof(int)); + size_t n = libgamma_list_methods(methods, LIBGAMMA_METHOD_COUNT, 0); size_t i; - if (n > GAMMA_METHOD_COUNT) + if (n > LIBGAMMA_METHOD_COUNT) { printf("Warning: you should to recompile the program, libgamma has been updated.\n"); methods = realloc(methods, n * sizeof(int)); -- cgit v1.2.3-70-g09d2