aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/wlr/util/log.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/wlr/util/log.h b/include/wlr/util/log.h
index 5e5d8393..587104cc 100644
--- a/include/wlr/util/log.h
+++ b/include/wlr/util/log.h
@@ -57,9 +57,9 @@ enum wlr_log_importance wlr_log_get_verbosity(void);
void _wlr_log(enum wlr_log_importance verbosity, const char *format, ...) _WLR_ATTRIB_PRINTF(2, 3);
void _wlr_vlog(enum wlr_log_importance verbosity, const char *format, va_list args) _WLR_ATTRIB_PRINTF(2, 0);
-#ifdef WLR_REL_SRC_DIR
+#ifdef _WLR_REL_SRC_DIR
// strip prefix from __FILE__, leaving the path relative to the project root
-#define _WLR_FILENAME ((const char *)__FILE__ + sizeof(WLR_REL_SRC_DIR) - 1)
+#define _WLR_FILENAME ((const char *)__FILE__ + sizeof(_WLR_REL_SRC_DIR) - 1)
#else
#define _WLR_FILENAME __FILE__
#endif