Skip to content

Commit a28249e

Browse files
author
iahung2
authored
Update main.cpp
Fix building on Cygwin
1 parent d63adf7 commit a28249e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/platform/console/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -442,7 +442,7 @@ int main(int argc, char *argv[]) {
442442
return gsb_last_error ? gsb_last_line : 0;
443443
}
444444

445-
#if defined(__GNUC__) && !defined(__MACH__) && !defined(_Win32)
445+
#if defined(__GNUC__) && !defined(__MACH__) && !defined(_Win32) && !defined(__CYGWIN__)
446446
// for analysing excessive malloc calls using kdbg
447447
extern "C" void *__libc_malloc(size_t size);
448448
void *malloc(size_t size) {

0 commit comments

Comments
 (0)