Add guards against double inclusion.
This commit is contained in:
parent
20f77d79a2
commit
b91f9042b0
@ -3,6 +3,9 @@
|
|||||||
* definitions into ecpg programs
|
* definitions into ecpg programs
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#ifndef _ECPGLIB_H
|
||||||
|
#define _ECPGLIB_H
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
#ifndef __BEOS__
|
#ifndef __BEOS__
|
||||||
@ -74,3 +77,5 @@ void ECPGfree_auto_mem(void);
|
|||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#endif /* _ECPGLIB_H */
|
||||||
|
@ -27,6 +27,10 @@
|
|||||||
* This is a typically recursive definition. A structure of typed list elements
|
* This is a typically recursive definition. A structure of typed list elements
|
||||||
* would probably work fine:
|
* would probably work fine:
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#ifndef _ECPGTYPE_H
|
||||||
|
#define _ECPGTYPE_H
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C"
|
extern "C"
|
||||||
{
|
{
|
||||||
@ -76,5 +80,6 @@ enum ECPGdtype
|
|||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#endif /* _ECPGTYPE_H */
|
||||||
|
@ -1,3 +1,6 @@
|
|||||||
|
#ifndef _ECPG_LIB_EXTERN_H
|
||||||
|
#define _ECPG_LIB_EXTERN_H
|
||||||
|
|
||||||
#include "postgres_fe.h"
|
#include "postgres_fe.h"
|
||||||
#include "libpq-fe.h"
|
#include "libpq-fe.h"
|
||||||
|
|
||||||
@ -87,3 +90,5 @@ PGresult **
|
|||||||
|
|
||||||
bool ECPGstore_result(const PGresult *results, int act_field,
|
bool ECPGstore_result(const PGresult *results, int act_field,
|
||||||
const struct statement * stmt, struct variable * var);
|
const struct statement * stmt, struct variable * var);
|
||||||
|
|
||||||
|
#endif /* _ECPG_LIB_EXTERN_H */
|
||||||
|
@ -1,3 +1,6 @@
|
|||||||
|
#ifndef _ECPG_PREPROC_EXTERN_H
|
||||||
|
#define _ECPG_PREPROC_EXTERN_H
|
||||||
|
|
||||||
#include "type.h"
|
#include "type.h"
|
||||||
|
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
@ -89,3 +92,5 @@ extern ScanKeyword *ScanKeywordLookup(char *text);
|
|||||||
#define OUT_OF_MEMORY 5
|
#define OUT_OF_MEMORY 5
|
||||||
#define INDICATOR_NOT_STRUCT 6
|
#define INDICATOR_NOT_STRUCT 6
|
||||||
#define INDICATOR_NOT_SIMPLE 7
|
#define INDICATOR_NOT_SIMPLE 7
|
||||||
|
|
||||||
|
#endif /* _ECPG_PREPROC_EXTERN_H */
|
||||||
|
@ -1,3 +1,6 @@
|
|||||||
|
#ifndef _ECPG_PREPROC_TYPE_H
|
||||||
|
#define _ECPG_PREPROC_TYPE_H
|
||||||
|
|
||||||
#include "ecpgtype.h"
|
#include "ecpgtype.h"
|
||||||
|
|
||||||
struct ECPGtype;
|
struct ECPGtype;
|
||||||
@ -172,3 +175,5 @@ typedef struct ScanKeyword
|
|||||||
char *name;
|
char *name;
|
||||||
int value;
|
int value;
|
||||||
} ScanKeyword;
|
} ScanKeyword;
|
||||||
|
|
||||||
|
#endif /* _ECPG_PREPROC_TYPE_H */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user