Linux was incorrectly identified in banner when compiled on macOS Darwin

master
Christian Jullien 2017-02-26 08:02:53 +01:00
parent bb93064d78
commit 206829415a
1 changed files with 2 additions and 0 deletions

2
tcc.c
View File

@ -160,6 +160,8 @@ static const char version[] =
" Windows"
#elif defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
" FreeBSD"
#elif defined(__APPLE__)
" Darwin"
#else
" Linux"
#endif