From da6333267414daee1a3dd0caa3ea2758cb608bfd Mon Sep 17 00:00:00 2001 From: Jonas Fonseca Date: Wed, 22 Aug 2007 19:38:00 +0200 Subject: [PATCH 1/1] Ensure ICONV_INBUF_TYPE is always defined; fix GIT_CONFIG define --- tig.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tig.c b/tig.c index 6a5be7f..762fb3e 100644 --- a/tig.c +++ b/tig.c @@ -80,6 +80,9 @@ static size_t utf8_length(const char *string, size_t max_width, int *coloffset, #define COLOR_DEFAULT (-1) #define ICONV_NONE ((iconv_t) -1) +#ifndef ICONV_INBUF_TYPE +#define ICONV_INBUF_TYPE char * +#endif /* The format and size of the date column in the main view. */ #define DATE_FORMAT "%Y-%m-%d %H:%M" @@ -95,7 +98,7 @@ static size_t utf8_length(const char *string, size_t max_width, int *coloffset, #define SCALE_SPLIT_VIEW(height) ((height) * 2 / 3) #ifndef GIT_CONFIG -#define "git config" +#define GIT_CONFIG "git config" #endif #define TIG_LS_REMOTE \ -- 2.11.0