projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
make math.h more c++-friendly
[musl]
/
include
/
errno.h
diff --git
a/include/errno.h
b/include/errno.h
index
d9c2c9c
..
9e1e320
100644
(file)
--- a/
include/errno.h
+++ b/
include/errno.h
@@
-7,7
+7,10
@@
extern "C" {
#include <bits/errno.h>
-extern int *__errno_location(void);
+#ifdef __GNUC__
+__attribute__((const))
+#endif
+int *__errno_location(void);
#define errno (*__errno_location())
#ifdef __cplusplus