Skip to content

Commit 59080a2

Browse files
Tweak syntax of extern "C++" linkage
1 parent 44ef27c commit 59080a2

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

include/mlib/delete.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,10 @@
2929
* and a deletion function for that type. In C, expands to an empty declaration
3030
*/
3131
#define mlib_assoc_deleter(T, DelFn) \
32-
MLIB_IF_CXX(extern "C++" template <> \
33-
struct mlib::unique_deleter<T> : ::mlib::just_invokes<DelFn>{};) \
32+
MLIB_IF_CXX(extern "C++" { \
33+
template <> \
34+
struct mlib::unique_deleter<T> : ::mlib::just_invokes<DelFn> {}; \
35+
}) \
3436
mlib_static_assert(true, "")
3537

3638
/**

0 commit comments

Comments
 (0)