X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fcfg%2Fos.h;h=2e393599df04aa7a18dfb1b1a5604ca3c90c33fe;hb=cd7f7400bd7798f2b1082ee1f9fe91fef8e5ca27;hp=2089cc4fc1e977b69333b09ce7214a9d1339d12f;hpb=32d1445272120a254d77ce8d1af1f527da7a2c17;p=bertos.git diff --git a/bertos/cfg/os.h b/bertos/cfg/os.h index 2089cc4f..2e393599 100644 --- a/bertos/cfg/os.h +++ b/bertos/cfg/os.h @@ -111,7 +111,7 @@ sigismember(&sigs__, SIGALRM) ? false : true; \ }) - #if CONFIG_KERN_PREEMPT + #if (CONFIG_KERN && CONFIG_KERN_PREEMPT) #define DECLARE_ISR_CONTEXT_SWITCH(vect) \ void vect(UNUSED_ARG(int, arg)); \ INLINE void __isr_##vect(void); \