Skip to content

Commit

Permalink
Prepare for vendoring BoringSSL
Browse files Browse the repository at this point in the history
  • Loading branch information
Lukasa committed Jan 30, 2025
1 parent b4a26ae commit e405a89
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ let package = Package(
]
),
],
cxxLanguageStandard: .cxx14
cxxLanguageStandard: .cxx17
)

// --- STANDARD CROSS-REPO SETTINGS DO NOT EDIT --- //
Expand Down
4 changes: 2 additions & 2 deletions scripts/patch-2-inttypes.patch
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ diff --git a/Sources/CNIOBoringSSL/crypto/x509/t_x509.cc b/Sources/CNIOBoringSSL
index 7a3acc8..c0bc1c5 100644
--- a/Sources/CNIOBoringSSL/crypto/x509/t_x509.cc
+++ b/Sources/CNIOBoringSSL/crypto/x509/t_x509.cc
@@ -55,6 +55,7 @@
* [including the GNU Public Licence.] */
@@ -8,6 +8,7 @@
*/

#include <assert.h>
+#include <inttypes.h> // for PRIu64 and friends
Expand Down
8 changes: 4 additions & 4 deletions scripts/patch-3-more-inttypes.patch
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ diff --git a/Sources/CNIOBoringSSL/crypto/evp/print.cc b/Sources/CNIOBoringSSL/c
index 89ceb32..5e6fb2f 100644
--- a/Sources/CNIOBoringSSL/crypto/evp/print.cc
+++ b/Sources/CNIOBoringSSL/crypto/evp/print.cc
@@ -50,6 +50,8 @@
* ([email protected]). This product includes software written by Tim
* Hudson ([email protected]). */
@@ -7,6 +7,8 @@
* https://www.openssl.org/source/license.html
*/

+#include <inttypes.h>
+
#include <CNIOBoringSSL_evp.h>
Expand Down

0 comments on commit e405a89

Please sign in to comment.