From ee2381cde4161e672ea84d693dcc8f34dd41a10e Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Fri, 18 Oct 2002 20:33:57 +0000 Subject: Make 'dummy' declarations in header files be 'extern int no_such_variable' instead of 'extern int errno'; the latter is unsafe according to the ANSI C standard, as well as in practice on some platforms. --- src/include/postgres.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/include/postgres.h') diff --git a/src/include/postgres.h b/src/include/postgres.h index b989c40917..8dc126af85 100644 --- a/src/include/postgres.h +++ b/src/include/postgres.h @@ -539,8 +539,8 @@ extern int ExceptionalCondition(char *conditionName, char *errorType, #define BKI_WITHOUT_OIDS /* these need to expand into some harmless, repeatable declaration */ -#define DATA(x) extern int errno -#define DESCR(x) extern int errno +#define DATA(x) extern int no_such_variable +#define DESCR(x) extern int no_such_variable #define BKI_BEGIN #define BKI_END -- cgit v1.2.3