aboutsummaryrefslogtreecommitdiff
path: root/tcc.h
diff options
context:
space:
mode:
authorgrischka <grischka>2016-10-01 21:06:33 +0200
committergrischka <grischka>2016-10-01 21:06:33 +0200
commit0a624782dfc8fee6f0600066b135d3b20e4274f4 (patch)
treee47f5f74ee3570445a7bc44f11bfb0ed98f4f427 /tcc.h
parent6d2be31b93bec581391ea4476482693ee7452f59 (diff)
downloadtinycc-0a624782dfc8fee6f0600066b135d3b20e4274f4.tar.gz
tinycc-0a624782dfc8fee6f0600066b135d3b20e4274f4.tar.bz2
build: revert Makefiles to 0.9.26 state (mostly)
Except - that libtcc1.a is now installed in subdirs i386/ etc. - the support for arm and arm64 - some of the "Darwin" fixes - tests are mosly unchanged Also - removed the "legacy links for cross compilers" (was total mess) - removed "out-of-tree" build support (was broken anyway)
Diffstat (limited to 'tcc.h')
-rw-r--r--tcc.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/tcc.h b/tcc.h
index a5380b5..d0e0888 100644
--- a/tcc.h
+++ b/tcc.h
@@ -281,6 +281,11 @@
# define DEFAULT_ELFINTERP(s) default_elfinterp(s)
#endif
+/* target specific subdir for libtcc1.a */
+#ifndef TCC_ARCH_DIR
+# define TCC_ARCH_DIR ""
+#endif
+
/* library to use with CONFIG_USE_LIBGCC instead of libtcc1.a */
#define TCC_LIBGCC USE_MUADIR(CONFIG_SYSROOT "/" CONFIG_LDDIR) "/libgcc_s.so.1"
@@ -1068,9 +1073,9 @@ ST_DATA int tcc_ext;
ST_DATA struct TCCState *tcc_state;
/* public functions currently used by the tcc main function */
-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 *pstrcpy(char *buf, int buf_size, const char *s);
+PUB_FUNC char *pstrcat(char *buf, int buf_size, const char *s);
+PUB_FUNC char *pstrncpy(char *out, const char *in, size_t num);
PUB_FUNC char *tcc_basename(const char *name);
PUB_FUNC char *tcc_fileextension (const char *name);