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

2
tcc.h
View File

@ -1167,7 +1167,7 @@ ST_DATA struct TCCState *tcc_state;
#define AFF_PREPROCESS 0x0004 /* preprocess file */
/* public functions currently used by the tcc main function */
PUB_FUNC char *pstrcpy(char *buf, int buf_size, const char *s);
ST_FUNC char *pstrcpy(char *buf, int buf_size, const char *s);
ST_FUNC char *pstrcat(char *buf, int buf_size, const char *s);
ST_FUNC char *pstrncpy(char *out, const char *in, size_t num);
PUB_FUNC char *tcc_basename(const char *name);