Skip to content

Commit

Permalink
Unnamed enums are not allowed on MacOS
Browse files Browse the repository at this point in the history
In file included from /Users/runner/work/ThunderNanoServices/ThunderNanoServices/Debug/install/usr/include/Thunder/core/Module.h:26:
/Users/runner/work/ThunderNanoServices/ThunderNanoServices/Debug/install/usr/include/Thunder/core/Portability.h:852:14: error: unnamed enumeration must be a definition
        enum : uint32_t {
             ^
  • Loading branch information
VeithMetro authored Nov 6, 2024
1 parent f623ceb commit ff02e95
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions Source/core/Portability.h
Original file line number Diff line number Diff line change
Expand Up @@ -849,13 +849,11 @@ namespace Core {

struct EXTERNAL IUnknown : public IReferenceCounted {

enum : uint32_t {
ID_OFFSET_INTERNAL = 0x00000000,
ID_OFFSET_PUBLIC = 0x00000040,
ID_OFFSET_CUSTOM = 0x80000000
};
constexpr uint32_t ID_OFFSET_INTERNAL = 0x00000000;
constexpr uint32_t ID_OFFSET_PUBLIC = 0x00000040;
constexpr uint32_t ID_OFFSET_CUSTOM = 0x80000000;

enum { ID = (ID_OFFSET_INTERNAL + 0x0000) };
constexpr uint32_t ID = (ID_OFFSET_INTERNAL + 0x0000);

~IUnknown() override = default;

Expand Down

0 comments on commit ff02e95

Please sign in to comment.