Skip to content

Commit b91f904

Browse files
committed
Add guards against double inclusion.
1 parent 20f77d7 commit b91f904

File tree

5 files changed

+26
-1
lines changed

5 files changed

+26
-1
lines changed

src/interfaces/ecpg/include/ecpglib.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
* definitions into ecpg programs
44
*/
55

6+
#ifndef _ECPGLIB_H
7+
#define _ECPGLIB_H
8+
69
#include <stdio.h>
710

811
#ifndef __BEOS__
@@ -74,3 +77,5 @@ void ECPGfree_auto_mem(void);
7477
}
7578

7679
#endif
80+
81+
#endif /* _ECPGLIB_H */

src/interfaces/ecpg/include/ecpgtype.h

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@
2727
* This is a typically recursive definition. A structure of typed list elements
2828
* would probably work fine:
2929
*/
30+
31+
#ifndef _ECPGTYPE_H
32+
#define _ECPGTYPE_H
33+
3034
#ifdef __cplusplus
3135
extern "C"
3236
{
@@ -76,5 +80,6 @@ enum ECPGdtype
7680

7781
#ifdef __cplusplus
7882
}
79-
8083
#endif
84+
85+
#endif /* _ECPGTYPE_H */

src/interfaces/ecpg/lib/extern.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
#ifndef _ECPG_LIB_EXTERN_H
2+
#define _ECPG_LIB_EXTERN_H
3+
14
#include "postgres_fe.h"
25
#include "libpq-fe.h"
36

@@ -87,3 +90,5 @@ PGresult **
8790

8891
bool ECPGstore_result(const PGresult *results, int act_field,
8992
const struct statement * stmt, struct variable * var);
93+
94+
#endif /* _ECPG_LIB_EXTERN_H */

src/interfaces/ecpg/preproc/extern.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
#ifndef _ECPG_PREPROC_EXTERN_H
2+
#define _ECPG_PREPROC_EXTERN_H
3+
14
#include "type.h"
25

36
#include <errno.h>
@@ -89,3 +92,5 @@ extern ScanKeyword *ScanKeywordLookup(char *text);
8992
#define OUT_OF_MEMORY 5
9093
#define INDICATOR_NOT_STRUCT 6
9194
#define INDICATOR_NOT_SIMPLE 7
95+
96+
#endif /* _ECPG_PREPROC_EXTERN_H */

src/interfaces/ecpg/preproc/type.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
#ifndef _ECPG_PREPROC_TYPE_H
2+
#define _ECPG_PREPROC_TYPE_H
3+
14
#include "ecpgtype.h"
25

36
struct ECPGtype;
@@ -172,3 +175,5 @@ typedef struct ScanKeyword
172175
char *name;
173176
int value;
174177
} ScanKeyword;
178+
179+
#endif /* _ECPG_PREPROC_TYPE_H */

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy