From 06e1d62689d2d3ceca014b46476f81ef2d9ceeac Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Thu, 28 Jul 2005 04:03:14 +0000 Subject: Fix a whole bunch of #includes that were either wrong or redundant. The first rule of portability for us is 'thou shalt have no other gods before c.h', and a whole lot of these files were either not including c.h at all, or including random system headers beforehand, either of which sins can mess up largefile support nicely. Once you have included c.h, there is no need to re-include what it includes, either. --- src/port/snprintf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/port/snprintf.c') diff --git a/src/port/snprintf.c b/src/port/snprintf.c index 04a5eb58b24..e7024b038ef 100644 --- a/src/port/snprintf.c +++ b/src/port/snprintf.c @@ -32,7 +32,7 @@ * SUCH DAMAGE. */ -#include "postgres.h" +#include "c.h" #ifndef WIN32 #include @@ -62,7 +62,7 @@ * causing nasty effects. **************************************************************/ -/*static char _id[] = "$PostgreSQL: pgsql/src/port/snprintf.c,v 1.27 2005/04/14 20:53:09 tgl Exp $";*/ +/*static char _id[] = "$PostgreSQL: pgsql/src/port/snprintf.c,v 1.28 2005/07/28 04:03:14 tgl Exp $";*/ static void dopr(char *buffer, const char *format, va_list args, char *end); -- cgit v1.2.3