From 3c8a0d715a9465601332c519c1c6ee16a6f68286 Mon Sep 17 00:00:00 2001 From: Ryan Pavlik Date: Thu, 28 Apr 2011 10:23:16 -0500 Subject: [PATCH] change way of defining WCONST so internal workings aren't as visible in the public API --- src/definitions.h | 1 + src/wiiuse.h | 4 +--- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/definitions.h b/src/definitions.h index 184cedf..76da35d 100644 --- a/src/definitions.h +++ b/src/definitions.h @@ -86,4 +86,5 @@ extern FILE* logtarget[]; #define absf(x) ((x >= 0) ? (x) : (x * -1.0f)) #define diff_f(x, y) ((x >= y) ? (absf(x - y)) : (absf(y - x))) +#define WCONST #endif // DEFINITIONS_H_INCLUDED diff --git a/src/wiiuse.h b/src/wiiuse.h index ff0189a..1fa6032 100644 --- a/src/wiiuse.h +++ b/src/wiiuse.h @@ -70,9 +70,7 @@ #include #endif -#ifdef WIIUSE_INTERNAL_H_INCLUDED - #define WCONST -#else +#ifndef WCONST #define WCONST const #endif