1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-30 11:03:19 +03:00

Be careful to include postgres.h *before* any system headers, to ensure

that the right flavors of largefile-related definitions are seen.
Most of these changes are probably unnecessary, but better safe than
sorry.
This commit is contained in:
Tom Lane
2002-09-05 00:43:07 +00:00
parent 3f63787cbf
commit 52c9d25933
21 changed files with 68 additions and 65 deletions

View File

@ -7,11 +7,11 @@
#define YYSTYPE char *
#define YYDEBUG 1
#include <string.h>
#include "postgres.h"
#include "cubedata.h"
#include "buffer.h"
#include "postgres.h"
#include "utils/palloc.h"
#include "utils/elog.h"

View File

@ -6,7 +6,8 @@
#define YYSTYPE char *
#define yylval cube_yylval
#include <stdio.h>
#include "postgres.h"
#include "cubeparse.h"
#include "buffer.h"

View File

@ -26,9 +26,8 @@
* PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
*
*/
#include <string.h>
#include "postgres.h"
#include "libpq-fe.h"
#include "libpq-int.h"
#include "fmgr.h"

View File

@ -1,6 +1,6 @@
/****************************************************************************
* pending.c
* $Id: pending.c,v 1.3 2002/09/04 22:49:22 petere Exp $
* $Id: pending.c,v 1.4 2002/09/05 00:43:06 tgl Exp $
*
* This file contains a trigger for Postgresql-7.x to record changes to tables
* to a pending table for mirroring.
@ -18,9 +18,10 @@
*
*
***************************************************************************/
#include <postgres.h>
#include <executor/spi.h>
#include <commands/trigger.h>
#include <postgres.h>
enum FieldUsage
{

View File

@ -42,11 +42,10 @@
#ifndef FUZZYSTRMATCH_H
#define FUZZYSTRMATCH_H
#include <stdio.h>
#include <string.h>
#include "postgres.h"
#include <ctype.h>
#include "postgres.h"
#include "fmgr.h"
#include "utils/builtins.h"

View File

@ -3,8 +3,8 @@
** A scanner for EMP-style numeric ranges
*/
#include <string.h>
#include <stdio.h>
#include "postgres.h"
#include "segparse.h"
#include "buffer.h"

View File

@ -25,11 +25,10 @@
* PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
*
*/
#include <stdlib.h>
#include <math.h>
#include "postgres.h"
#include <math.h>
#include "fmgr.h"
#include "funcapi.h"
#include "executor/spi.h"

View File

@ -1,10 +1,10 @@
%{
#include <string.h>
#include "postgres.h"
#include "deflex.h"
#include "parser.h"
/* postgres allocation function */
#include "postgres.h"
#define free pfree
#define malloc palloc
#define realloc repalloc