forked from void-linux/void-packages
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
33 additions
and
2 deletions.
There are no files selected for viewing
31 changes: 31 additions & 0 deletions
31
srcpkgs/notcurses/patches/6296a2480f047b3d4517a8d4db9a9a43d523fe84.diff
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
diff --git a/src/compat/compat.h b/src/compat/compat.h | ||
index 72da2c3b1..a28439193 100644 | ||
--- a/src/compat/compat.h | ||
+++ b/src/compat/compat.h | ||
@@ -3,13 +3,6 @@ | ||
|
||
#ifdef __cplusplus | ||
extern "C" { | ||
-#ifdef __linux__ | ||
-#define NOEXCEPT noexcept | ||
-#else | ||
-#define NOEXCEPT | ||
-#endif | ||
-#else | ||
-#define NOEXCEPT | ||
#endif | ||
|
||
#include <time.h> | ||
@@ -79,10 +72,10 @@ int clock_nanosleep(clockid_t clockid, int flags, | ||
const struct timespec *request, | ||
struct timespec *remain); | ||
|
||
-char* strndup(const char* str, size_t size) NOEXCEPT; | ||
- | ||
#ifdef __cplusplus | ||
} | ||
+#else | ||
+char* strndup(const char* str, size_t size); | ||
#endif | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters