Skip to content

Commit 0e40232

Browse files
fix(cross-comp): gate noexcept solely on __cplusplus
Signed-off-by: Shashwat Agrawal <shashwatagrawal473@gmail.com>
1 parent f335790 commit 0e40232

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tec.h

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,14 @@
4747
#define isatty _isatty
4848
#ifndef STDOUT_FILENO
4949
#define STDOUT_FILENO _fileno(stdout)
50-
#define TEC_FUCK_MSVC_EH noexcept(false)
5150
#endif
5251
#else
5352
#include <unistd.h>
53+
#endif
54+
55+
#ifdef __cplusplus
56+
#define TEC_FUCK_MSVC_EH noexcept(false)
57+
#else
5458
#define TEC_FUCK_MSVC_EH
5559
#endif
5660

0 commit comments

Comments
 (0)