aboutsummaryrefslogtreecommitdiff
path: root/gdb/common/preprocessor.h
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2019-01-23 18:58:28 +0000
committerPedro Alves <palves@redhat.com>2019-01-23 18:58:28 +0000
commitcf08fb29f8c484a34c4babb015348b220f80a33b (patch)
tree8ecd41fe1487c6916328cc8ff44e1002624a3a58 /gdb/common/preprocessor.h
parentae73e2e2435cb706b18ba05734aee4137a271b3c (diff)
downloadgdb-cf08fb29f8c484a34c4babb015348b220f80a33b.zip
gdb-cf08fb29f8c484a34c4babb015348b220f80a33b.tar.gz
gdb-cf08fb29f8c484a34c4babb015348b220f80a33b.tar.bz2
Rename ESC -> ESC_PARENS
A following patch will include common/preprocessor.h in some .c file that also includes readline.h, and that revealed a conflict -- ESC is defined by readline.h as well (actually readline's chardefs.h) with a completely unrelated meaning: #define ESC CTRL('[') Rename our version to avoid the conflict. gdb/ChangeLog: 2019-01-23 Pedro Alves <palves@redhat.com> * common/preprocessor.h (ESC): Rename to ... (ESC_PARENS): ... this. * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2) (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
Diffstat (limited to 'gdb/common/preprocessor.h')
-rw-r--r--gdb/common/preprocessor.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/common/preprocessor.h b/gdb/common/preprocessor.h
index 647568e..a7c33d0 100644
--- a/gdb/common/preprocessor.h
+++ b/gdb/common/preprocessor.h
@@ -30,6 +30,6 @@
/* Escape parens out. Useful if you need to pass an argument that
includes commas to another macro. */
-#define ESC(...) __VA_ARGS__
+#define ESC_PARENS(...) __VA_ARGS__
#endif /* COMMON_PREPROC */