Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitb91f904

Browse files
committed
Add guards against double inclusion.
1 parent20f77d7 commitb91f904

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 @@ voidECPGfree_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
boolECPGstore_result(constPGresult*results,intact_field,
8992
conststructstatement*stmt,structvariable*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
#defineOUT_OF_MEMORY5
9093
#defineINDICATOR_NOT_STRUCT6
9194
#defineINDICATOR_NOT_SIMPLE7
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
structECPGtype;
@@ -172,3 +175,5 @@ typedef struct ScanKeyword
172175
char*name;
173176
intvalue;
174177
}ScanKeyword;
178+
179+
#endif/* _ECPG_PREPROC_TYPE_H */

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp