Swiftpack.co - Package - shotastage/SwiftCLibrary

Swift CLibrary

Build Status Swift 3.0.2 MIT License

Import Glibc or Darwin library automatically.


Please add "SwiftLibC" to Package.swift using Swift Package Manager(SPM).

import PackageDescription
let package = Package(
    name: "Package Name",
    dependences: [
    	.Package(url: "https://github.com/shotastage/SwiftLibC.git", versions: Version(0,0,1)...Version(1,0,0)),

You can import LibC like following code.

import CLibrary

and You can use this library only add import CLibrary to first line of source. You need not to write codes like following.

#if os(OSX)
	import Darwin
#elseif os(Linux)
	import Glibc


This program is freely distributed under the MIT, see LICENSE for detail.


Stars: 0
Help us keep the lights on


Used By

Total: 0


1.0.0 - Nov 23, 2016

0.1.5 - Oct 14, 2016

You can use SwiftCLibrary on latest preview snapshot (version 3.0.1-preview2).

0.1.4 - Aug 31, 2016

0.1.3 - Aug 31, 2016

0.1.2 - Jul 20, 2016