aboutsummaryrefslogtreecommitdiff
path: root/src/include/utils/palloc.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/utils/palloc.h')
-rw-r--r--src/include/utils/palloc.h11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/include/utils/palloc.h b/src/include/utils/palloc.h
index 75d8864ad43..5cb1ce57c81 100644
--- a/src/include/utils/palloc.h
+++ b/src/include/utils/palloc.h
@@ -81,10 +81,10 @@ extern void *repalloc(void *pointer, Size size);
*/
#ifndef FRONTEND
-#ifndef USE_INLINE
+#ifndef PG_USE_INLINE
extern MemoryContext MemoryContextSwitchTo(MemoryContext context);
-#endif /* !USE_INLINE */
-#if defined(USE_INLINE) || defined(MCXT_INCLUDE_DEFINITIONS)
+#endif /* !PG_USE_INLINE */
+#if defined(PG_USE_INLINE) || defined(MCXT_INCLUDE_DEFINITIONS)
STATIC_IF_INLINE MemoryContext
MemoryContextSwitchTo(MemoryContext context)
{
@@ -93,9 +93,8 @@ MemoryContextSwitchTo(MemoryContext context)
CurrentMemoryContext = context;
return old;
}
-#endif
-
-#endif /* !FRONTEND */
+#endif /* PG_USE_INLINE || MCXT_INCLUDE_DEFINITIONS */
+#endif /* !FRONTEND */
/*
* These are like standard strdup() except the copied string is