allow to compile tcc by pcc

* pcc have only __linux__ macro (and no __linux)
    * pcc don't have __clear_cache proc
This commit is contained in:
seyko
2016-04-15 17:41:49 +03:00
parent c6dc756d4e
commit 5ee097fce9
3 changed files with 6 additions and 2 deletions

View File

@ -1125,7 +1125,7 @@ LIBTCCAPI TCCState *tcc_new(void)
tcc_define_symbol(s, "__unix__", NULL);
tcc_define_symbol(s, "__unix", NULL);
tcc_define_symbol(s, "unix", NULL);
# if defined(__linux)
# if defined(__linux__)
tcc_define_symbol(s, "__linux__", NULL);
tcc_define_symbol(s, "__linux", NULL);
# endif