IRQ_ENABLED(): Prevent name clash with variable defined within macro
authorbernie <bernie@38d2e660-2303-0410-9eaa-f027e97ec537>
Wed, 6 Aug 2008 05:32:14 +0000 (05:32 +0000)
committerbernie <bernie@38d2e660-2303-0410-9eaa-f027e97ec537>
Wed, 6 Aug 2008 05:32:14 +0000 (05:32 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1555 38d2e660-2303-0410-9eaa-f027e97ec537

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