Skip to content

Commit

Permalink
Fixed platform-specific type
Browse files Browse the repository at this point in the history
  • Loading branch information
samdeane committed Dec 19, 2024
1 parent 94e21f1 commit d85090f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Sources/SwiftGodot/EntryPoint.swift
Original file line number Diff line number Diff line change
Expand Up @@ -438,7 +438,12 @@ public func initializeSwiftModule(
let initialization = UnsafeMutablePointer<GDExtensionInitialization>(extensionPtr)
initialization.pointee.deinitialize = extension_deinitialize
initialization.pointee.initialize = extension_initialize
initialization.pointee.minimum_initialization_level = GDExtensionInitializationLevel(Int32(minimumInitializationLevel.rawValue))
#if os(Windows)
typealias RawType = Int32
#else
typealias RawType = UInt32
#endif
initialization.pointee.minimum_initialization_level = GDExtensionInitializationLevel(RawType(minimumInitializationLevel.rawValue))
initialization.pointee.userdata = UnsafeMutableRawPointer(libraryPtr)
}

Expand Down

0 comments on commit d85090f

Please sign in to comment.