From c8023317996e17859b4a0abfdf4c49bfcfd81df5 Mon Sep 17 00:00:00 2001 From: bernie Date: Wed, 6 Aug 2008 05:32:14 +0000 Subject: [PATCH] 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 --- bertos/cfg/os.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 -- 2.25.1