Skip to content

Commit 54d77f5

Browse files
committed
Work around macro symbol conflict with an enum.
This is due to that enum not adhering to the style guide yet: https://google.github.io/styleguide/cppguide.html#Enumerator_Names So this needs to be fixed separately, but this is a quick fix. Signed-off-by: Henner Zeller <[email protected]>
1 parent 1649b34 commit 54d77f5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/odb/include/odb/gdsUtil.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,8 @@ extern const char* recordNames[];
125125
*/
126126
enum class DataType : uint8_t
127127
{
128+
// TODO: https://google.github.io/styleguide/cppguide.html#Enumerator_Names
129+
#undef NO_DATA // avoid conflict with macro in /usr/include/netdb.h
128130
NO_DATA,
129131
BIT_ARRAY,
130132
INT_2,

0 commit comments

Comments
 (0)