about summary refs log tree commit homepage
path: root/mwrap_core.h
diff options
context:
space:
mode:
Diffstat (limited to 'mwrap_core.h')
-rw-r--r--mwrap_core.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/mwrap_core.h b/mwrap_core.h
index b014f5d..449dfa4 100644
--- a/mwrap_core.h
+++ b/mwrap_core.h
@@ -78,7 +78,7 @@ extern const char __attribute__((weak)) PL_memory_wrap[]; /* needed for -O0 */
 #endif
 
 static MWRAP_TSD size_t locating;
-#ifndef PERL_IMPLICIT_CONTEXT
+#if MWRAP_PERL && !defined(PERL_IMPLICIT_CONTEXT)
 static size_t *root_locating; /* determines if PL_curcop is our thread */
 #endif
 static struct cds_lfht *files, *totals;
@@ -913,7 +913,7 @@ static void mwrap_reset(void)
         rcu_read_unlock();
 }
 
-static struct src_loc *mwrap_get(const char *str, size_t len)
+static inline struct src_loc *mwrap_get(const char *str, size_t len)
 {
         void *p;