Rein in unintended external functions on Windows.

This commit is contained in:
Jean-Claude Beaudoin
2016-09-27 01:43:40 -04:00
parent 08335c1548
commit 889ee28ed5
4 changed files with 7 additions and 5 deletions

View File

@ -28,7 +28,7 @@
#include <io.h>
#include <malloc.h>
char *get_export_names(int fd);
static char *get_export_names(int fd);
#define tcc_free free
#define tcc_realloc realloc
@ -169,7 +169,7 @@ int read_mem(int fd, unsigned offset, void *buffer, unsigned len)
/* -------------------------------------------------------------- */
#endif
char *get_export_names(int fd)
static char *get_export_names(int fd)
{
int l, i, n, n0;
char *p;