Cockatrice/libcockatrice_server/libcockatrice/server/user_level.h
2025-10-08 15:21:05 +02:00

15 lines
393 B
C

#ifndef USER_LEVEL_H
#define USER_LEVEL_H
#ifdef Q_OS_MACOS
// avoid collision from Mac OS X's ConditionalMacros.h
// https://github.com/protocolbuffers/protobuf/issues/119
#undef TYPE_BOOL
#endif
#include <QFlags>
#include <libcockatrice/protocol/pb/serverinfo_user.pb.h>
Q_DECLARE_FLAGS(UserLevelFlags, ServerInfo_User::UserLevelFlag)
Q_DECLARE_OPERATORS_FOR_FLAGS(UserLevelFlags)
#endif