From 4fa45d64499e9f975ffb8920a53183693356fbb1 Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Sat, 26 Feb 2011 10:21:10 +0100 Subject: [PATCH] tcc support added --- src/build/util.c | 1 + src/gmtool.h | 2 +- src/platform.h | 6 ++++++ src/util/bsdstring.h | 4 ---- 4 files changed, 8 insertions(+), 5 deletions(-) diff --git a/src/build/util.c b/src/build/util.c index c9a6897aa..aacf33927 100644 --- a/src/build/util.c +++ b/src/build/util.c @@ -34,6 +34,7 @@ #ifndef HAVE_INLINE #include +#include #endif #ifdef __GNUC__ diff --git a/src/gmtool.h b/src/gmtool.h index 1912e03ee..f0bbd6d86 100644 --- a/src/gmtool.h +++ b/src/gmtool.h @@ -26,7 +26,7 @@ extern "C" { void select_coordinate(struct selection * selected, int x, int y, int on); void run_mapper(void); - int force_color; + extern int force_color; struct state * state_open(void); void state_close(struct state * ); diff --git a/src/platform.h b/src/platform.h index 721006b7b..e8b988885 100644 --- a/src/platform.h +++ b/src/platform.h @@ -133,6 +133,12 @@ typedef struct stat stat_type; # define HAVE_MKDIR_WITH_PERMISSION #endif +/* TinyCC */ +#ifdef TINYCC +# undef HAVE_INLINE +# define INLINE_FUNCTION +#endif + /* lcc-win32 */ #ifdef __LCC__ # include diff --git a/src/util/bsdstring.h b/src/util/bsdstring.h index ca0e94188..90feb2165 100644 --- a/src/util/bsdstring.h +++ b/src/util/bsdstring.h @@ -9,10 +9,6 @@ extern int wrptr(char ** ptr, size_t * size, int bytes); #endif -#if !defined(HAVE_STRLCPY) -# define HAVE_STRLCPY -#endif - #define WARN_STATIC_BUFFER() log_warning(("static buffer too small in %s:%d\n", __FILE__, __LINE__)) #if !defined(HAVE_STRLPRINTF)