OSDN Git Service

Ooops ... dllist.c can't use Assert() when it is compiled into
authorTom Lane <tgl@sss.pgh.pa.us>
Thu, 3 Jun 1999 01:28:24 +0000 (01:28 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 3 Jun 1999 01:28:24 +0000 (01:28 +0000)
libpq ...

src/backend/lib/dllist.c

index 3ca7cf0..1c261ce 100644 (file)
@@ -9,15 +9,24 @@
  *
  *
  * IDENTIFICATION
- *       $Header: /cvsroot/pgsql/src/backend/lib/dllist.c,v 1.13 1999/05/31 23:48:03 tgl Exp $
+ *       $Header: /cvsroot/pgsql/src/backend/lib/dllist.c,v 1.14 1999/06/03 01:28:24 tgl Exp $
  *
  *-------------------------------------------------------------------------
  */
 
 #include <postgres.h>
-
 #include <lib/dllist.h>
 
+/* When this file is compiled for inclusion in libpq,
+ * it can't use assert checking.  Probably this fix ought to be
+ * in c.h or somewhere like that...
+ */
+#ifdef FRONTEND
+#undef Assert
+#define Assert(condition)
+#endif
+
+
 Dllist *
 DLNewList(void)
 {