x86_64-tcc and libtcc1.c: size_t definition is needed for a x86_64-tcc to parse memset()

master
seyko 2015-03-03 16:29:00 +03:00
parent e374a733d6
commit 7f36abd3f2
1 changed files with 2 additions and 1 deletions

View File

@ -630,8 +630,9 @@ long long __fixxfdi (long double a1)
#else
/* Avoid including stdlib.h because it is not easily available when
cross compiling */
#include <stddef.h> /* size_t definition is needed for a x86_64-tcc to parse memset() */
extern void *malloc(unsigned long long);
void *memset(void *s, int c, size_t n);
extern void *memset(void *s, int c, size_t n);
extern void free(void*);
extern void abort(void);
#endif