From fa9df07b676a1ad26a8fab74b2b67f7b9ac217fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Branimir=20Karad=C5=BEi=C4=87?= Date: Sun, 8 Jul 2018 21:23:25 -0700 Subject: [PATCH] Cleanup. --- include/bgfx/c99/bgfx.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/bgfx/c99/bgfx.h b/include/bgfx/c99/bgfx.h index 1c3d544a3..ce313429b 100644 --- a/include/bgfx/c99/bgfx.h +++ b/include/bgfx/c99/bgfx.h @@ -15,7 +15,9 @@ #include -#define BGFX_INVALID_HANDLE { UINT16_MAX } +#if !defined(BGFX_INVALID_HANDLE) +# define BGFX_INVALID_HANDLE { UINT16_MAX } +#endif // !defined(BGFX_INVALID_HANDLE) #ifndef BGFX_SHARED_LIB_BUILD # define BGFX_SHARED_LIB_BUILD 0