Mercurial > dovecot > original-hg > dovecot-1.2
comparison src/lib/compat.h @ 7850:7f9f7fc02359 HEAD
Support systems with non-C99 vsnprintf().
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Fri, 13 Jun 2008 00:28:18 +0300 |
parents | 35877d1131db |
children | bbfbc84f795c |
comparison
equal
deleted
inserted
replaced
7849:9a00bd31ca99 | 7850:7f9f7fc02359 |
---|---|
189 unsigned long long int my_strtoull(const char *nptr, char **endptr, int base); | 189 unsigned long long int my_strtoull(const char *nptr, char **endptr, int base); |
190 #endif | 190 #endif |
191 #ifndef HAVE_STRTOLL | 191 #ifndef HAVE_STRTOLL |
192 # define strtoll my_strtoll | 192 # define strtoll my_strtoll |
193 unsigned long long int my_strtoll(const char *nptr, char **endptr, int base); | 193 unsigned long long int my_strtoll(const char *nptr, char **endptr, int base); |
194 #endif | |
195 | |
196 #ifdef HAVE_OLD_VSNPRINTF | |
197 # include <stdio.h> | |
198 # define vsnprintf my_vsnprintf | |
199 int my_vsnprintf(char *str, size_t size, const char *format, va_list ap); | |
194 #endif | 200 #endif |
195 | 201 |
196 /* ctype.h isn't safe with signed chars, | 202 /* ctype.h isn't safe with signed chars, |
197 use our own instead if really needed */ | 203 use our own instead if really needed */ |
198 #define i_toupper(x) ((char) toupper((int) (unsigned char) (x))) | 204 #define i_toupper(x) ((char) toupper((int) (unsigned char) (x))) |