Skip to content

Commit

Permalink
Merge pull request #72116 from nornagon/imgui-disable-obsolete-keyio
Browse files Browse the repository at this point in the history
build with -DIMGUI_DISABLE_OBSOLETE_KEYIO
  • Loading branch information
akrieger authored Mar 8, 2024
2 parents 5f56f80 + 0791652 commit d2faac4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -956,6 +956,7 @@ SOURCES += $(THIRD_PARTY_SOURCES)
IMGUI_SOURCES = $(IMGUI_DIR)/imgui.cpp $(IMGUI_DIR)/imgui_demo.cpp $(IMGUI_DIR)/imgui_draw.cpp $(IMGUI_DIR)/imgui_tables.cpp $(IMGUI_DIR)/imgui_widgets.cpp

ifeq ($(SDL), 1)
OTHERS += -DIMGUI_DISABLE_OBSOLETE_KEYIO
IMGUI_SOURCES += $(IMGUI_DIR)/imgui_impl_sdl2.cpp $(IMGUI_DIR)/imgui_impl_sdlrenderer2.cpp
else
IMGUI_SOURCES += $(IMTUI_DIR)/imtui-impl-ncurses.cpp $(IMTUI_DIR)/imtui-impl-text.cpp
Expand Down
2 changes: 1 addition & 1 deletion msvc-full-features/Cataclysm-common.props
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
<PrecompiledHeader>Use</PrecompiledHeader>
<ForcedIncludeFiles>$(MSBuildThisFileDirectory)..\pch\main-pch.hpp</ForcedIncludeFiles>
<DisableSpecificWarnings>4661;4819;4146;26495;26444;26451;4068;6319;6237</DisableSpecificWarnings>
<PreprocessorDefinitions>_SCL_SECURE_NO_WARNINGS;_CRT_SECURE_NO_WARNINGS;WIN32_LEAN_AND_MEAN;LOCALIZE;USE_VCPKG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<PreprocessorDefinitions>_SCL_SECURE_NO_WARNINGS;_CRT_SECURE_NO_WARNINGS;WIN32_LEAN_AND_MEAN;LOCALIZE;USE_VCPKG;IMGUI_DISABLE_OBSOLETE_KEYIO;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<ConformanceMode>true</ConformanceMode>
<PrecompiledHeaderFile>$(MSBuildThisFileDirectory)..\pch\main-pch.hpp</PrecompiledHeaderFile>
</ClCompile>
Expand Down
3 changes: 3 additions & 0 deletions src/third-party/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,9 @@ if (TILES)
PRIVATE
-w
)

add_definitions(-DIMGUI_DISABLE_OBSOLETE_KEYIO)

if (NOT DYNAMIC_LINKING)
target_link_libraries(imgui PUBLIC
SDL2::SDL2-static
Expand Down

0 comments on commit d2faac4

Please sign in to comment.