Skip to content

Commit

Permalink
Merge pull request #445 from pzychotic/fix-mem-mgmt
Browse files Browse the repository at this point in the history
Fixed inconsistent use of memory management functions
  • Loading branch information
Lgt2x authored Jun 19, 2024
2 parents 99e8655 + 04122e3 commit fa3f379
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 2 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,8 @@ elseif(CMAKE_SYSTEM_NAME STREQUAL "Windows")
add_compile_options("/MP") # so msbuild builds with multiple processes
endif()

add_compile_definitions($<$<BOOL:${ENABLE_MEM_RTL}>:MEM_USE_RTL>)

add_compile_definitions($<$<CONFIG:Release>:RELEASE>)
add_compile_definitions($<$<CONFIG:Debug>:_DEBUG>)

Expand Down
3 changes: 0 additions & 3 deletions Descent3/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -296,9 +296,6 @@ add_executable(Descent3
WIN32
${HEADERS} ${CPPS} ${PLATFORM_CPPS} ${INCS}
)
target_compile_definitions(Descent3 PUBLIC
$<$<BOOL:${ENABLE_MEM_RTL}>:MEM_USE_RTL>
)
target_link_libraries(Descent3
2dlib AudioEncode bitmap cfile czip d3music dd_video ddebug ddio libmve libacm
fix grtext manage mem misc model module movie stream_audio
Expand Down

0 comments on commit fa3f379

Please sign in to comment.