IRQ_ENABLED(): Prevent name clash with variable defined within macro
[bertos.git] / bertos / cfg / os.h
index 041d591f978b8130fd1e6e43f40cc2c6e9c35b39..8a81971cecf236408baf230a005d6dd2908a7517 100644 (file)
 
        #define IRQ_ENABLED() \
        ({ \
-               sigset_t sigs; \
-               sigprocmask(SIG_SETMASK, NULL, &sigs); \
-               sigismember(&sigs, SIGALRM) ? false : true; \
+               sigset_t sigs__; \
+               sigprocmask(SIG_SETMASK, NULL, &sigs__); \
+               sigismember(&sigs__, SIGALRM) ? false : true; \
         })
 
 #else