Skip to content

Commit 6afa88a

Browse files
committed
Properly build Debug builds
1 parent 48e9784 commit 6afa88a

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,8 @@ set(SOURCE_FILES
99

1010
add_executable(extract-xiso ${SOURCE_FILES})
1111
target_compile_definitions(extract-xiso PRIVATE ${TARGET_OS})
12+
if(CMAKE_BUILD_TYPE STREQUAL "Debug")
13+
add_definitions(-DDEBUG=1)
14+
endif()
1215
set_property(TARGET extract-xiso PROPERTY C_STANDARD 90)
1316
install(TARGETS extract-xiso RUNTIME DESTINATION "${CMAKE_INSTALL_PREFIX}/bin")

extract-xiso.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,8 @@
271271
#endif
272272

273273
#if defined(_MSC_VER)
274+
#include <BaseTsd.h>
275+
typedef SSIZE_T ssize_t;
274276
#define strcasecmp _stricmp
275277
#define strncasecmp _strnicmp
276278
#else

0 commit comments

Comments
 (0)