aboutsummaryrefslogtreecommitdiff
path: root/src/trace_processor/tables/macros_internal.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/trace_processor/tables/macros_internal.h')
-rw-r--r--src/trace_processor/tables/macros_internal.h16
1 files changed, 5 insertions, 11 deletions
diff --git a/src/trace_processor/tables/macros_internal.h b/src/trace_processor/tables/macros_internal.h
index a7b832537..6710c6979 100644
--- a/src/trace_processor/tables/macros_internal.h
+++ b/src/trace_processor/tables/macros_internal.h
@@ -140,9 +140,7 @@ class MacroTable : public Table {
} // namespace macros_internal
// Ignore GCC warning about a missing argument for a variadic macro parameter.
-#if defined(__GNUC__) || defined(__clang__)
#pragma GCC system_header
-#endif
// Basic helper macros.
#define PERFETTO_TP_NOOP(...)
@@ -225,15 +223,11 @@ class MacroTable : public Table {
#define PERFETTO_TP_COLUMN_FLAG_CHOOSER(type, name, maybe_flags, fn, ...) fn
-// MSVC has slightly different rules about __VA_ARGS__ expansion. This makes it
-// behave similarly to GCC/Clang.
-// See https://stackoverflow.com/q/5134523/14028266 .
-#define PERFETTO_TP_EXPAND_VA_ARGS(x) x
-
-#define PERFETTO_TP_COLUMN_FLAG(...) \
- PERFETTO_TP_EXPAND_VA_ARGS(PERFETTO_TP_COLUMN_FLAG_CHOOSER( \
- __VA_ARGS__, PERFETTO_TP_COLUMN_FLAG_HAS_FLAG_COL, \
- PERFETTO_TP_COLUMN_FLAG_NO_FLAG_COL)(__VA_ARGS__))
+#define PERFETTO_TP_COLUMN_FLAG(...) \
+ PERFETTO_TP_COLUMN_FLAG_CHOOSER(__VA_ARGS__, \
+ PERFETTO_TP_COLUMN_FLAG_HAS_FLAG_COL, \
+ PERFETTO_TP_COLUMN_FLAG_NO_FLAG_COL) \
+ (__VA_ARGS__)
// Creates the sparse vector with the given flags.
#define PERFETTO_TP_TABLE_CONSTRUCTOR_SV(type, name, ...) \