remove __STDC_LIMIT_MACROS and __STDC_CONSTANT_MACROS checks in stdint.h
[musl] / include / errno.h
index d9c2c9c..0361b33 100644 (file)
@@ -5,11 +5,20 @@
 extern "C" {
 #endif
 
+#include <features.h>
+
 #include <bits/errno.h>
 
-extern int *__errno_location(void);
+#ifdef __GNUC__
+__attribute__((const))
+#endif
+int *__errno_location(void);
 #define errno (*__errno_location())
 
+#ifdef _GNU_SOURCE
+extern char *program_invocation_short_name, *program_invocation_name;
+#endif
+
 #ifdef __cplusplus
 }
 #endif