aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2004-08-29 01:44:02 +0000
committerBruce Momjian <bruce@momjian.us>2004-08-29 01:44:02 +0000
commitf94aea9c10f43cc3ccf99df2e1e80c89a36d683e (patch)
treef474449b1d2e5d2cd83ac92a0df2e6f0bff2faa7
parent704ff0b2f25b62cce26e573eafa96ed7e5b6f04e (diff)
downloadpostgresql-f94aea9c10f43cc3ccf99df2e1e80c89a36d683e.tar.gz
postgresql-f94aea9c10f43cc3ccf99df2e1e80c89a36d683e.zip
Add comment on palloc use and DLLIMPORT>
-rw-r--r--src/port/dirmod.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/port/dirmod.c b/src/port/dirmod.c
index 7c87c0fff0c..1c9ad19c0c5 100644
--- a/src/port/dirmod.c
+++ b/src/port/dirmod.c
@@ -10,7 +10,7 @@
* Win32 (NT, Win2k, XP). replace() doesn't work on Win95/98/Me.
*
* IDENTIFICATION
- * $PostgreSQL: pgsql/src/port/dirmod.c,v 1.18 2004/08/08 06:44:36 momjian Exp $
+ * $PostgreSQL: pgsql/src/port/dirmod.c,v 1.19 2004/08/29 01:44:02 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@@ -39,6 +39,10 @@
#undef unlink
#ifndef FRONTEND
+/*
+ * Call non-macro versions of palloc, can't reference CurrentMemoryContext
+ * because of DLLIMPORT.
+ */
#define palloc(sz) pgport_palloc(sz)
#define pstrdup(str) pgport_pstrdup(str)
#define pfree(pointer) pgport_pfree(pointer)