-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
libmhash: make boolean usage libc++ portable
- Loading branch information
Showing
2 changed files
with
24 additions
and
1 deletion.
There are no files selected for viewing
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
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,23 @@ | ||
https://github.com/void-linux/void-packages/pull/46005 | ||
|
||
--- a/include/mutils/mutils.h | ||
+++ b/include/mutils/mutils.h | ||
@@ -21,6 +21,9 @@ | ||
#if !defined(__MUTILS_H) | ||
#define __MUTILS_H | ||
|
||
+#ifndef __cplusplus | ||
+#include <stdbool.h> | ||
+#endif | ||
#include <mutils/mincludes.h> | ||
|
||
#if defined(const) | ||
@@ -97,7 +100,7 @@ typedef unsigned char mutils_word8; | ||
*/ | ||
|
||
#if defined(HAVE__BOOL) | ||
-#define mutils_boolean _Bool | ||
+#define mutils_boolean bool | ||
#else | ||
typedef char mutils_boolean; | ||
#endif |