From 456534fd16678a76ed1e51c46f34c8c84b1ebd1d Mon Sep 17 00:00:00 2001 From: Tim Varley Date: Thu, 17 Jun 2021 15:29:01 -0400 Subject: [PATCH] Place guard around UNUSED defined --- olcPixelGameEngine.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/olcPixelGameEngine.h b/olcPixelGameEngine.h index 48a9be5..cec1626 100644 --- a/olcPixelGameEngine.h +++ b/olcPixelGameEngine.h @@ -394,7 +394,9 @@ int main() #define olcT(s) s #endif -#define UNUSED(x) (void)(x) +#if ! defined(UNUSED) + #define UNUSED(x) (void)(x) +#endif // O------------------------------------------------------------------------------O // | PLATFORM SELECTION CODE, Thanks slavka! |