From 148cde5e982950ad5836fa96baa466de842e1c14 Mon Sep 17 00:00:00 2001 From: patacongo Date: Tue, 27 Feb 2007 21:17:21 +0000 Subject: Finally, a clean SDCC compile git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@20 42af7a65-404d-4744-a932-0658087f49c3 --- nuttx/sched/irq_attach.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'nuttx/sched/irq_attach.c') diff --git a/nuttx/sched/irq_attach.c b/nuttx/sched/irq_attach.c index d67a04a49..3032bf1b6 100644 --- a/nuttx/sched/irq_attach.c +++ b/nuttx/sched/irq_attach.c @@ -76,6 +76,7 @@ int irq_attach(int irq, xcpt_t isr) { +#if NR_IRQS > 0 int ret = ERROR; if ((unsigned)irq < NR_IRQS) @@ -102,6 +103,9 @@ int irq_attach(int irq, xcpt_t isr) } return ret; +#else + return OK; +#endif } -- cgit v1.2.3