Skip to content

Commit 9b3e2dd

Browse files
committed
Ooops ... dllist.c can't use Assert() when it is compiled into
libpq ...
1 parent 98981a9 commit 9b3e2dd

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

src/backend/lib/dllist.c

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,24 @@
99
*
1010
*
1111
* IDENTIFICATION
12-
* $Header: /cvsroot/pgsql/src/backend/lib/dllist.c,v 1.13 1999/05/31 23:48:03 tgl Exp $
12+
* $Header: /cvsroot/pgsql/src/backend/lib/dllist.c,v 1.14 1999/06/03 01:28:24 tgl Exp $
1313
*
1414
*-------------------------------------------------------------------------
1515
*/
1616

1717
#include <postgres.h>
18-
1918
#include <lib/dllist.h>
2019

20+
/* When this file is compiled for inclusion in libpq,
21+
* it can't use assert checking. Probably this fix ought to be
22+
* in c.h or somewhere like that...
23+
*/
24+
#ifdef FRONTEND
25+
#undef Assert
26+
#define Assert(condition)
27+
#endif
28+
29+
2130
Dllist *
2231
DLNewList(void)
2332
{

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy