Skip to content

Commit

Permalink
TODO squash try to fix double definition properly
Browse files Browse the repository at this point in the history
  • Loading branch information
garymm committed Feb 1, 2024
1 parent 10bf72a commit e405e3d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 0 additions & 4 deletions include/IrrCompileConfig.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,6 @@
#define IRRLICHT_VERSION_SVN alpha
#define IRRLICHT_SDK_VERSION "1.9.0" IRRLICHT_VERSION_MT

#if RENDER_HEADLESS // from https://github.com/EleutherAI/irrlicht
#define _IRR_COMPILE_WITH_SDL_DEVICE_
#endif

#include <stdio.h> // TODO: Although included elsewhere this is required at least for mingw

#ifdef _WIN32
Expand Down
2 changes: 1 addition & 1 deletion source/Irrlicht/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ elseif(DEVICE STREQUAL "SDL")
message(FATAL_ERROR "SDL was used but not enabled?!")
endif()

add_definitions("-D_IRR_COMPILE_WITH_${DEVICE}_DEVICE_")
target_compile_definitions(IrrlichtMt PUBLIC "_IRR_COMPILE_WITH_${DEVICE}_DEVICE_")

# X11

Expand Down

0 comments on commit e405e3d

Please sign in to comment.