tcc support added

This commit is contained in:
Enno Rehling 2011-02-26 10:21:10 +01:00
parent 2e67e9c290
commit 4fa45d6449
4 changed files with 8 additions and 5 deletions

View File

@ -34,6 +34,7 @@
#ifndef HAVE_INLINE #ifndef HAVE_INLINE
#include <util/bsdstring.c> #include <util/bsdstring.c>
#include <util/strings.c>
#endif #endif
#ifdef __GNUC__ #ifdef __GNUC__

View File

@ -26,7 +26,7 @@ extern "C" {
void select_coordinate(struct selection * selected, int x, int y, int on); void select_coordinate(struct selection * selected, int x, int y, int on);
void run_mapper(void); void run_mapper(void);
int force_color; extern int force_color;
struct state * state_open(void); struct state * state_open(void);
void state_close(struct state * ); void state_close(struct state * );

View File

@ -133,6 +133,12 @@ typedef struct stat stat_type;
# define HAVE_MKDIR_WITH_PERMISSION # define HAVE_MKDIR_WITH_PERMISSION
#endif #endif
/* TinyCC */
#ifdef TINYCC
# undef HAVE_INLINE
# define INLINE_FUNCTION
#endif
/* lcc-win32 */ /* lcc-win32 */
#ifdef __LCC__ #ifdef __LCC__
# include <string.h> # include <string.h>

View File

@ -9,10 +9,6 @@
extern int wrptr(char ** ptr, size_t * size, int bytes); extern int wrptr(char ** ptr, size_t * size, int bytes);
#endif #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__)) #define WARN_STATIC_BUFFER() log_warning(("static buffer too small in %s:%d\n", __FILE__, __LINE__))
#if !defined(HAVE_STRLPRINTF) #if !defined(HAVE_STRLPRINTF)