summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2003-04-12 22:28:40 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2003-04-12 22:28:40 +0000
commit041ab272c72983c9fe28da707a27814764be8818 (patch)
treeeb93563f51c309fe716d34b5fba3edd5f8760b84
parent5d6b0a43dc7f78e5e240555769b02863e1bfc4da (diff)
Guard against macro versions of isblank().
-rw-r--r--src/backend/libpq/hba.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/backend/libpq/hba.c b/src/backend/libpq/hba.c
index ea04cfc2bd9..c3c4893b958 100644
--- a/src/backend/libpq/hba.c
+++ b/src/backend/libpq/hba.c
@@ -10,7 +10,7 @@
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/libpq/hba.c,v 1.87.2.2 2002/12/14 18:49:43 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/libpq/hba.c,v 1.87.2.3 2003/04/12 22:28:40 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@@ -70,8 +70,13 @@ static char *tokenize_inc_file(const char *inc_filename);
/*
* Some standard C libraries, including GNU, have an isblank() function.
- * Others, including Solaris, do not. So we have our own.
+ * Others, including Solaris, do not. So we have our own. Watch out for
+ * macro-ized versions, too.
*/
+#ifdef isblank
+#undef isblank
+#endif
+
static bool
isblank(const char c)
{