summaryrefslogtreecommitdiff
path: root/src/include/postgres.h
diff options
context:
space:
mode:
authorTom Lane2002-10-18 20:33:57 +0000
committerTom Lane2002-10-18 20:33:57 +0000
commitee2381cde4161e672ea84d693dcc8f34dd41a10e (patch)
treec57c2967d2a7fc772f742db6b2ef2ab9ee53c740 /src/include/postgres.h
parent313cf65f13668d0fdd875667157aa4aaf21d3815 (diff)
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.
Diffstat (limited to 'src/include/postgres.h')
-rw-r--r--src/include/postgres.h4
1 files changed, 2 insertions, 2 deletions
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