mirror of
https://github.com/frida/tinycc
synced 2024-12-25 14:36:49 +03:00
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
libtcc.c
2
libtcc.c
@ -135,7 +135,7 @@ BOOL WINAPI DllMain (HINSTANCE hDll, DWORD dwReason, LPVOID lpReserved)
|
||||
|
||||
/********************************************************/
|
||||
/* 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;
|
||||
int c;
|
||||
|
2
tcc.h
2
tcc.h
@ -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 */
|
||||
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 *pstrncpy(char *out, const char *in, size_t num);
|
||||
PUB_FUNC char *tcc_basename(const char *name);
|
||||
|
Loading…
Reference in New Issue
Block a user