summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ratpoison.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/ratpoison.h b/src/ratpoison.h
index e675d54..58381ef 100644
--- a/src/ratpoison.h
+++ b/src/ratpoison.h
@@ -33,8 +33,14 @@
#include <X11/Xlocale.h>
#include <fcntl.h>
+#if defined(__BASE_FILE__)
+#define RP_FILE_NAME __BASE_FILE__
+#else
+#define RP_FILE_NAME __FILE__
+#endif
+
/* Helper macro for error and debug reporting. */
-#define PRINT_LINE(type) printf (PACKAGE ":%s:%d: %s: ",__FILE__, __LINE__, #type)
+#define PRINT_LINE(type) printf (PACKAGE ":%s:%d: %s: ",RP_FILE_NAME, __LINE__, #type)
/* Error and debug reporting macros. */
#define PRINT_ERROR(fmt) \