From 3030975ab6155c3c5b78e158ffe885549b3c8d1b Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Tue, 4 Jan 2011 19:53:14 +0000 Subject: 2011-01-04 Joel Sherrill * libcsupport/src/error.c: Scheduler Simulator compilation always defines __RTEMS_VIOLATE_KERNEL_VISIBILITY__. So avoid redefinition warning. --- cpukit/libcsupport/src/error.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'cpukit/libcsupport') diff --git a/cpukit/libcsupport/src/error.c b/cpukit/libcsupport/src/error.c index 666da76b8b..074707c54c 100644 --- a/cpukit/libcsupport/src/error.c +++ b/cpukit/libcsupport/src/error.c @@ -43,7 +43,12 @@ * } */ -#define __RTEMS_VIOLATE_KERNEL_VISIBILITY__ +/* This is always defined on RTEMS Scheduler Simulator and thus + * we get a redefined warning if this is not present. + */ +#ifndef __RTEMS_VIOLATE_KERNEL_VISIBILITY__ + #define __RTEMS_VIOLATE_KERNEL_VISIBILITY__ +#endif #include #include -- cgit v1.2.3