Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 7fab608

Browse files
committed
Add configure test to see whether vsnprintf() is present,
separately from snprintf() --- HPUX, for one, has snprintf but not vsnprintf. Fix a minor typo in snprintf.c, too.
1 parent cd6bc85 commit 7fab608

File tree

6 files changed

+190
-105
lines changed

6 files changed

+190
-105
lines changed

src/backend/port/snprintf.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ typedef unsigned long long ulong_long;
7373
* causing nast effects.
7474
**************************************************************/
7575

76-
/*static char _id[] = "$Id: snprintf.c,v 1.15 1998/12/24 05:28:50 momjian Exp $";*/
76+
/*static char _id[] = "$Id: snprintf.c,v 1.16 1999/01/17 03:22:49 tgl Exp $";*/
7777
static char *end;
7878
static int SnprfOverflow;
7979

@@ -115,7 +115,7 @@ vsnprintf(char *str, size_t count, const char *fmt, va_list args)
115115

116116
static void fmtstr __P((char *value, int ljust, int len, int zpad, int maxwidth));
117117

118-
#ifndef HAVE_LONG_INT_64
118+
#ifndef HAVE_LONG_LONG_INT_64
119119
static void fmtnum __P((long value, int base, int dosign, int ljust, int len, int zpad));
120120
#else
121121
static void fmtnum __P((long_long value, int base, int dosign, int ljust, int len, int zpad));

0 commit comments

Comments
 (0)