pstrcpy looks to be needed by Windows win32/win64 builds. Reverted as PUB_FUNC to allow tcc.exe build again.
This commit is contained in:
parent
6db7a2157b
commit
e037fd3364
2 changed files with 2 additions and 2 deletions
2
libtcc.c
2
libtcc.c
|
|
@ -135,7 +135,7 @@ BOOL WINAPI DllMain (HINSTANCE hDll, DWORD dwReason, LPVOID lpReserved)
|
||||||
|
|
||||||
/********************************************************/
|
/********************************************************/
|
||||||
/* copy a string and truncate it. */
|
/* copy a string and truncate it. */
|
||||||
ST_FUNC char *pstrcpy(char *buf, int buf_size, const char *s)
|
PUB_FUNC char *pstrcpy(char *buf, int buf_size, const char *s)
|
||||||
{
|
{
|
||||||
char *q, *q_end;
|
char *q, *q_end;
|
||||||
int c;
|
int c;
|
||||||
|
|
|
||||||
2
tcc.h
2
tcc.h
|
|
@ -1167,7 +1167,7 @@ ST_DATA struct TCCState *tcc_state;
|
||||||
#define AFF_PREPROCESS 0x0004 /* preprocess file */
|
#define AFF_PREPROCESS 0x0004 /* preprocess file */
|
||||||
|
|
||||||
/* public functions currently used by the tcc main function */
|
/* public functions currently used by the tcc main function */
|
||||||
ST_FUNC char *pstrcpy(char *buf, int buf_size, const char *s);
|
PUB_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 *pstrcat(char *buf, int buf_size, const char *s);
|
||||||
ST_FUNC char *pstrncpy(char *out, const char *in, size_t num);
|
ST_FUNC char *pstrncpy(char *out, const char *in, size_t num);
|
||||||
PUB_FUNC char *tcc_basename(const char *name);
|
PUB_FUNC char *tcc_basename(const char *name);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue