Mercurial > ~mikael > mcabber > hg
diff mcabber/libjabber/snprintf.c @ 417:c3ae9251c197
Sync libjabber with upstream
Sync with jabberd-1.4.4.
author | Mikael Berthe <mikael@lilotux.net> |
---|---|
date | Thu, 01 Sep 2005 23:29:21 +0200 |
parents | ec86d759ed54 |
children |
line wrap: on
line diff
--- a/mcabber/libjabber/snprintf.c Thu Sep 01 21:18:19 2005 +0200 +++ b/mcabber/libjabber/snprintf.c Thu Sep 01 23:29:21 2005 +0200 @@ -53,6 +53,15 @@ * <panos@alumni.cs.colorado.edu> for xinetd. */ +/** + * @file snprintf.c + * @brief implement snprintf if not present in the libc + * + * snprintf is not implemented by all libc implementations, this file implements this + * function, if it is not already present. You should not call any of the functions + * in this file directly! + */ + #include <libxode.h> #if !defined(HAVE_SNPRINTF) || !defined(HAVE_VSNPRINTF) @@ -242,8 +251,12 @@ NO = 0, YES = 1 } boolean_e; -#define FALSE 0 -#define TRUE 1 +#ifndef FALSE +# define FALSE 0 +#endif +#ifndef TRUE +# define TRUE 1 +#endif #define NUL '\0' #define INT_NULL ((int *)0) #define WIDE_INT long