aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@efficios.com>2024-05-30 16:28:19 -0400
committerSimon Marchi <simon.marchi@efficios.com>2024-08-12 10:58:49 -0400
commit66673ad2e4574db3a65e25b307ad41bbcb165dc2 (patch)
tree67b52f41070cfaf81276bfa2d9b68567db9a2efd
parentac56938eb42f21c29b374f849038313751fc0fa8 (diff)
downloadbinutils-66673ad2e4574db3a65e25b307ad41bbcb165dc2.zip
binutils-66673ad2e4574db3a65e25b307ad41bbcb165dc2.tar.gz
binutils-66673ad2e4574db3a65e25b307ad41bbcb165dc2.tar.bz2
gdbsupport: remove C enum flags fallback
This might have been useful during the C -> C++ conversion (not sure), but it doesn't appear useful today. I don't see when enum-flags.h would be used in a C context. Change-Id: I6c7ed655757248a62a1bf6615995f42e8aa2b4bd
-rw-r--r--gdbsupport/enum-flags.h11
1 files changed, 0 insertions, 11 deletions
diff --git a/gdbsupport/enum-flags.h b/gdbsupport/enum-flags.h
index 5078004..56e0c52 100644
--- a/gdbsupport/enum-flags.h
+++ b/gdbsupport/enum-flags.h
@@ -51,8 +51,6 @@
some_flags f = 1; // error
*/
-#ifdef __cplusplus
-
/* Use this to mark an enum as flags enum. It defines FLAGS_TYPE as
enum_flags wrapper class for ENUM, and enables the global operator
overloads for ENUM. */
@@ -484,13 +482,4 @@ enum_flags<E>::to_string (const string_mapping (&mapping)[N]) const
return res;
}
-#else /* __cplusplus */
-
-/* In C, the flags type is just a typedef for the enum type. */
-
-#define DEF_ENUM_FLAGS_TYPE(enum_type, flags_type) \
- typedef enum_type flags_type
-
-#endif /* __cplusplus */
-
#endif /* COMMON_ENUM_FLAGS_H */