diff --git a/README.md b/README.md index 74330aa..ad73a4c 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,7 @@ github "bscothern/Once" ## Swift Package Manager Update your `Package.swift` to include this to your package dependencies: ``` -.package(url: "https://github.com/bscothern/Once.git", from: "1.2.0") +.package(url: "https://github.com/bscothern/Once.git", from: "1.3.0") ``` ## Usage diff --git a/Sources/OnceC/include/OnceC.h b/Sources/OnceC/include/OnceC.h index 95268ce..9892f8d 100644 --- a/Sources/OnceC/include/OnceC.h +++ b/Sources/OnceC/include/OnceC.h @@ -29,6 +29,7 @@ #ifndef OnceC_h #define OnceC_h +#include #include /// The struct that we will use in Swift since we cannot directly access `pthread_once_t`. diff --git a/Sources/include/Once/module.modulemap b/Sources/include/Once/module.modulemap deleted file mode 100644 index 7614262..0000000 --- a/Sources/include/Once/module.modulemap +++ /dev/null @@ -1,33 +0,0 @@ -// -// module.modulemap -// Once -// -// Created by Braden Scothern on 10/11/17. -// Copyright © 2017 Braden Scothern. All rights reserved. -// -// The MIT License (MIT) -// -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights -// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -// copies of the Software, and to permit persons to whom the Software is -// furnished to do so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in all -// copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -// SOFTWARE. -// - -framework module Once { - header "Once.h" - - private header "OnceC.h" -}