Fix compilation warnings

This commit is contained in:
Wojtek Figat
2025-09-09 10:23:07 +02:00
parent 42b542d190
commit 24e088fc08
2 changed files with 5 additions and 2 deletions

View File

@@ -12,7 +12,7 @@ public:
{
}
};
#define ImplementPhysicsDebug void DrawPhysicsDebug(RenderView& view)
#define ImplementPhysicsDebug void DrawPhysicsDebug(RenderView& view) override
#else
#define ImplementPhysicsDebug
#endif

View File

@@ -258,7 +258,10 @@ bool MacPlatform::Init()
// Get device id
{
io_registry_entry_t ioRegistryRoot = IORegistryEntryFromPath(kIOMasterPortDefault, "IOService:/");
#if MAC_OS_X_VERSION_MAX_ALLOWED < 120000
#define kIOMainPortDefault kIOMasterPortDefault
#endif
io_registry_entry_t ioRegistryRoot = IORegistryEntryFromPath(kIOMainPortDefault, "IOService:/");
CFStringRef deviceUuid = (CFStringRef)IORegistryEntryCreateCFProperty(ioRegistryRoot, CFSTR(kIOPlatformUUIDKey), kCFAllocatorDefault, 0);
IOObjectRelease(ioRegistryRoot);
String uuidStr = AppleUtils::ToString(deviceUuid);