Tiny C Compiler(ktcc):

- Fixed "segmentation fault" when using debug flag:" -g "in Linux version
 

git-svn-id: svn://kolibrios.org@8677 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
turbocat 2021-04-23 17:38:39 +00:00
parent 0c0895f9a0
commit b84cfc1204
2 changed files with 1 additions and 2 deletions

View File

@ -319,7 +319,7 @@ int tcc_output_me(TCCState* s1,const char *filename)
return 0;
}
#ifndef _WIN32
#if !defined(_WIN32) && !defined(TCC_TARGET_MEOS_LINUX)
static inline int get_current_folder(char* buf, int bufsize){
register int val;
@ -327,7 +327,6 @@ static inline int get_current_folder(char* buf, int bufsize){
return val;
}
char *getcwd(char *buf, size_t size)
{
int rc = get_current_folder(buf, size);