Skip to content

Commit

Permalink
Declare required C functions
Browse files Browse the repository at this point in the history
  • Loading branch information
colemancda committed Nov 8, 2024
1 parent 3b7a4c0 commit 131931b
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions Sources/Bluetooth/Extensions/System.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
//
// System.swift
// Bluetooth
//
// Created by Alsey Coleman Miller on 11/7/24.
//

// Declares the required C functions

@_silgen_name("memcmp")
func _memcmp(
_: UnsafeRawPointer!,
_: UnsafeRawPointer!,
_: Int
) -> Int32

#if hasFeature(Embedded)
@_silgen_name("snprintf")
internal func _snprintf_uint8_t(
_ pointer: UnsafeMutablePointer<CChar>,
_ length: Int,
_ format: UnsafePointer<CChar>,
_ arg: UInt8
) -> Int32
#endif

0 comments on commit 131931b

Please sign in to comment.