summaryrefslogtreecommitdiff
path: root/src/interfaces/ecpg
diff options
context:
space:
mode:
Diffstat (limited to 'src/interfaces/ecpg')
-rw-r--r--src/interfaces/ecpg/ecpglib/descriptor.c2
-rw-r--r--src/interfaces/ecpg/ecpglib/ecpglib_extern.h6
-rw-r--r--src/interfaces/ecpg/ecpglib/misc.c2
-rw-r--r--src/interfaces/ecpg/include/ecpglib.h5
-rw-r--r--src/interfaces/ecpg/preproc/preproc_extern.h3
5 files changed, 9 insertions, 9 deletions
diff --git a/src/interfaces/ecpg/ecpglib/descriptor.c b/src/interfaces/ecpg/ecpglib/descriptor.c
index 7bd0534ef70..f71f539bef9 100644
--- a/src/interfaces/ecpg/ecpglib/descriptor.c
+++ b/src/interfaces/ecpg/ecpglib/descriptor.c
@@ -12,9 +12,9 @@
#include "ecpglib.h"
#include "ecpglib_extern.h"
#include "ecpgtype.h"
+#include "sql3types.h"
#include "sqlca.h"
#include "sqlda.h"
-#include "sql3types.h"
static void descriptor_free(struct descriptor *desc);
diff --git a/src/interfaces/ecpg/ecpglib/ecpglib_extern.h b/src/interfaces/ecpg/ecpglib/ecpglib_extern.h
index 4bf55fe3fdf..1a98dea1b55 100644
--- a/src/interfaces/ecpg/ecpglib/ecpglib_extern.h
+++ b/src/interfaces/ecpg/ecpglib/ecpglib_extern.h
@@ -3,12 +3,12 @@
#ifndef _ECPG_ECPGLIB_EXTERN_H
#define _ECPG_ECPGLIB_EXTERN_H
+#include "ecpg_config.h"
+#include "ecpgtype.h"
#include "libpq-fe.h"
#include "sqlca.h"
-#include "sqlda-native.h"
#include "sqlda-compat.h"
-#include "ecpg_config.h"
-#include "ecpgtype.h"
+#include "sqlda-native.h"
#ifndef CHAR_BIT
#include <limits.h>
diff --git a/src/interfaces/ecpg/ecpglib/misc.c b/src/interfaces/ecpg/ecpglib/misc.c
index c4b2183b5dd..a07d0dfb9fc 100644
--- a/src/interfaces/ecpg/ecpglib/misc.c
+++ b/src/interfaces/ecpg/ecpglib/misc.c
@@ -11,11 +11,11 @@
#include "ecpglib.h"
#include "ecpglib_extern.h"
#include "ecpgtype.h"
+#include "pg_config_paths.h"
#include "pgtypes_date.h"
#include "pgtypes_interval.h"
#include "pgtypes_numeric.h"
#include "pgtypes_timestamp.h"
-#include "pg_config_paths.h"
#include "sqlca.h"
#ifndef LONG_LONG_MIN
diff --git a/src/interfaces/ecpg/include/ecpglib.h b/src/interfaces/ecpg/include/ecpglib.h
index c65073f15ac..00240109a6c 100644
--- a/src/interfaces/ecpg/include/ecpglib.h
+++ b/src/interfaces/ecpg/include/ecpglib.h
@@ -7,11 +7,12 @@
#ifndef _ECPGLIB_H
#define _ECPGLIB_H
-#include "libpq-fe.h"
+#include <string.h>
+
#include "ecpg_config.h"
#include "ecpgtype.h"
+#include "libpq-fe.h"
#include "sqlca.h"
-#include <string.h>
/*
* This is a small extract from c.h since we don't want to leak all postgres
diff --git a/src/interfaces/ecpg/preproc/preproc_extern.h b/src/interfaces/ecpg/preproc/preproc_extern.h
index 323fd5c3c1a..51d5f94f07f 100644
--- a/src/interfaces/ecpg/preproc/preproc_extern.h
+++ b/src/interfaces/ecpg/preproc/preproc_extern.h
@@ -3,9 +3,8 @@
#ifndef _ECPG_PREPROC_EXTERN_H
#define _ECPG_PREPROC_EXTERN_H
-#include "type.h"
-
#include "common/keywords.h"
+#include "type.h"
#ifndef CHAR_BIT
#include <limits.h>