mirror of
https://github.com/hyprwm/hyprlang.git
synced 2024-12-22 01:49:49 +01:00
header: undef internal symbols if not internal
This commit is contained in:
parent
2e2a1992c8
commit
bba5daeaf9
2 changed files with 7 additions and 0 deletions
|
@ -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")
|
||||
|
|
|
@ -453,4 +453,9 @@ namespace Hyprlang {
|
|||
CParseResult parseRawStream(const std::string& stream);
|
||||
};
|
||||
};
|
||||
|
||||
#ifndef HYPRLANG_INTERNAL
|
||||
#undef HYPRLANG_END_MAGIC
|
||||
#endif
|
||||
|
||||
#endif
|
Loading…
Reference in a new issue