Skip to content

Commit 4484187

Browse files
committed
header: fence c++ only check
1 parent 5b9a253 commit 4484187

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/error/my_error.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,11 @@ extern "C" {
1313
#endif
1414
void err_c(int);
1515

16+
#ifdef __cplusplus
1617
#if __has_cpp_attribute(noreturn)
1718
[[noreturn]]
1819
#endif
20+
#endif
1921
void err_cpp(int);
2022

2123
void error_fortran(int*);

0 commit comments

Comments
 (0)