From ca0e6d06d8ae055823a5b11fe64a0b05cb6ae3e3 Mon Sep 17 00:00:00 2001 From: Sean Barrett Date: Wed, 7 Jul 2021 00:57:43 -0700 Subject: [PATCH] stb_c_lexer: don't define default macro definitions on non-implementation includes --- stb_c_lexer.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/stb_c_lexer.h b/stb_c_lexer.h index 4676102..0cb9f39 100644 --- a/stb_c_lexer.h +++ b/stb_c_lexer.h @@ -42,6 +42,7 @@ // // See end of file for license information. +#ifdef STB_C_LEXER_IMPLEMENTATION #ifndef STB_C_LEXER_DEFINITIONS // to change the default parsing rules, copy the following lines // into your C/C++ file *before* including this, and then replace @@ -96,6 +97,7 @@ #define STB_C_LEXER_DEFINITIONS // This line prevents the header file from replacing your definitions // --END-- +#endif #endif #ifndef INCLUDE_STB_C_LEXER_H