* Fix for BSD machines: getc() may be defined as a macro.

This commit is contained in:
Sam Hocevar
2007-01-06 20:59:28 +00:00
committed by sam
parent 1913d08ca0
commit e20a8f44bd
+2
View File
@@ -243,10 +243,12 @@ size_t fread(void *ptr, size_t size, size_t nmemb, FILE *stream)
debug(STR(fn)"([%i]) = 0x%02x", fd, ret); \
} while(0)
#if !defined getc
int getc(FILE *stream)
{
int ret; FGETC(getc); return ret;
}
#endif
int fgetc(FILE *stream)
{