X-Git-Url: http://nsz.repo.hu/git/?p=musl;a=blobdiff_plain;f=include%2Ferrno.h;h=9e1e3202b79dcd9d024a52d76e8b5ed99cafe6ad;hp=d9c2c9c73099a5161c3d6568f41a3f8e000ce752;hb=0d4d1a96e4fd827267250e469affc7ebfc44324f;hpb=0b44a0315b47dd8eced9f3b7f31580cf14bbfc01 diff --git a/include/errno.h b/include/errno.h index d9c2c9c7..9e1e3202 100644 --- a/include/errno.h +++ b/include/errno.h @@ -7,7 +7,10 @@ extern "C" { #include -extern int *__errno_location(void); +#ifdef __GNUC__ +__attribute__((const)) +#endif +int *__errno_location(void); #define errno (*__errno_location()) #ifdef __cplusplus