From: bernie Date: Wed, 6 Aug 2008 05:32:14 +0000 (+0000) Subject: IRQ_ENABLED(): Prevent name clash with variable defined within macro X-Git-Tag: 2.0.0~379 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=c8023317996e17859b4a0abfdf4c49bfcfd81df5;p=bertos.git IRQ_ENABLED(): Prevent name clash with variable defined within macro git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1555 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/bertos/cfg/os.h b/bertos/cfg/os.h index 041d591f..8a81971c 100644 --- a/bertos/cfg/os.h +++ b/bertos/cfg/os.h @@ -109,9 +109,9 @@ #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