mirror of
https://github.com/alexbatalov/fallout2-ce.git
synced 2024-09-03 13:29:15 +00:00
Enable debug output on linux (#45)
This commit is contained in:
parent
c0b98ba90e
commit
8c2b9c7aec
@ -247,6 +247,11 @@ if(WIN32)
|
||||
_CRT_SECURE_NO_WARNINGS
|
||||
_CRT_NONSTDC_NO_WARNINGS
|
||||
)
|
||||
else()
|
||||
target_compile_definitions(${EXECUTABLE_NAME} PRIVATE
|
||||
$<$<CONFIG:Debug>:_DEBUG>
|
||||
$<$<CONFIG:RelWithDebInfo>:_DEBUG>
|
||||
)
|
||||
endif()
|
||||
|
||||
if(WIN32)
|
||||
|
@ -142,7 +142,7 @@ int debugPrint(const char* format, ...)
|
||||
#ifdef _WIN32
|
||||
OutputDebugStringA(string);
|
||||
#else
|
||||
printf(string);
|
||||
printf("%s", string);
|
||||
#endif
|
||||
#endif
|
||||
rc = -1;
|
||||
|
Loading…
Reference in New Issue
Block a user