Skip to content

Commit 243d43c

Browse files
committed
Fix linking to c_zeroize with Cxx mode (#153)
Fixes #150
1 parent 82c0450 commit 243d43c

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

Sources/CUtil/zeroize.h

+7-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2024 Apple Inc. and the Swift Homomorphic Encryption project authors
1+
// Copyright 2024-2025 Apple Inc. and the Swift Homomorphic Encryption project authors
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.
@@ -17,6 +17,12 @@
1717

1818
#include <stddef.h>
1919

20+
#ifdef __cplusplus
21+
extern "C" {
22+
#endif
2023
void c_zeroize(void *s, size_t n);
24+
#ifdef __cplusplus
25+
}
26+
#endif
2127

2228
#endif /* ZEROIZE_H */

0 commit comments

Comments
 (0)