aboutsummaryrefslogtreecommitdiff
path: root/src/include/postgres.h
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2002-10-18 20:33:57 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2002-10-18 20:33:57 +0000
commit6c06bc2644a7684edd062f46c8a1bb7c610a9359 (patch)
treed7edbb343521da38fd29dfa62457993f427b8c84 /src/include/postgres.h
parentdad34ba5679d7a141e0d7a6802394330a572652e (diff)
downloadpostgresql-6c06bc2644a7684edd062f46c8a1bb7c610a9359.tar.gz
postgresql-6c06bc2644a7684edd062f46c8a1bb7c610a9359.zip
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.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/include/postgres.h b/src/include/postgres.h
index 9f974299714..9d7ad9bbec3 100644
--- a/src/include/postgres.h
+++ b/src/include/postgres.h
@@ -10,7 +10,7 @@
* Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group
* Portions Copyright (c) 1995, Regents of the University of California
*
- * $Id: postgres.h,v 1.61 2002/09/04 20:31:36 momjian Exp $
+ * $Id: postgres.h,v 1.62 2002/10/18 20:33:57 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@@ -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