[rtems commit] testsupport/testbeginend.c: Fix redefined warning

Joel Sherrill joel at rtems.org
Tue Jan 16 19:48:09 UTC 2018


Module:    rtems
Branch:    master
Commit:    f387e8f40b34f3dd5d9e4b21cf8d341c5a78e6c5
Changeset: http://git.rtems.org/rtems/commit/?id=f387e8f40b34f3dd5d9e4b21cf8d341c5a78e6c5

Author:    Joel Sherrill <joel at rtems.org>
Date:      Tue Jan 16 13:47:53 2018 -0600

testsupport/testbeginend.c: Fix redefined warning

---

 cpukit/libmisc/testsupport/testbeginend.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/cpukit/libmisc/testsupport/testbeginend.c b/cpukit/libmisc/testsupport/testbeginend.c
index f9dab4e..154df03 100644
--- a/cpukit/libmisc/testsupport/testbeginend.c
+++ b/cpukit/libmisc/testsupport/testbeginend.c
@@ -22,7 +22,6 @@
 #include <rtems/bspIo.h>
 #include <rtems/version.h>
 
-#define TEST_BUILD_DEFAULT "default"
 #if RTEMS_POSIX
   #define TEST_BUILD_DEFAULT ""
   #define TEST_BUILD_POSIX   "posix "
@@ -65,6 +64,9 @@
 #else
   #define TEST_BUILD_PROFILING
 #endif
+#ifndef TEST_BUILD_DEFAULT
+#define TEST_BUILD_DEFAULT "default"
+#endif
 
 #define TEST_BUILD_STRING \
          TEST_BUILD_DEFAULT \



More information about the vc mailing list