From bba5daeaf96bd83ca373f145297ed76cc25c5d02 Mon Sep 17 00:00:00 2001 From: Vaxry Date: Fri, 8 Mar 2024 16:15:01 +0000 Subject: [PATCH] header: undef internal symbols if not internal --- CMakeLists.txt | 2 ++ include/hyprlang.hpp | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 13d0bba..1dddfb6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -24,6 +24,8 @@ else() message(STATUS "Configuring hyprlang in Release") endif() +add_compile_definitions(HYPRLANG_INTERNAL) + set(CMAKE_CXX_STANDARD 23) file(GLOB_RECURSE SRCFILES CONFIGURE_DEPENDS "src/*.cpp" "include/hyprlang.hpp") diff --git a/include/hyprlang.hpp b/include/hyprlang.hpp index c5d43b3..a32119e 100644 --- a/include/hyprlang.hpp +++ b/include/hyprlang.hpp @@ -453,4 +453,9 @@ namespace Hyprlang { CParseResult parseRawStream(const std::string& stream); }; }; + +#ifndef HYPRLANG_INTERNAL +#undef HYPRLANG_END_MAGIC +#endif + #endif \ No newline at end of file