Added ifndef around build_time so pmacros.h and tmacros.h could be included

by the same application.
This commit is contained in:
Joel Sherrill
1999-11-22 19:02:35 +00:00
parent 7dbb0bd230
commit b8cda5a65b
2 changed files with 4 additions and 0 deletions

View File

@@ -134,6 +134,7 @@ extern "C" {
putchar( '\n' ); \
}
#ifndef build_time
#define build_time( TB, MON, DAY, YR, HR, MIN, SEC, TK ) \
{ (TB)->year = YR; \
(TB)->month = MON; \
@@ -142,6 +143,7 @@ extern "C" {
(TB)->minute = MIN; \
(TB)->second = SEC; \
(TB)->ticks = TK; }
#endif
#define task_number( tid ) \
( rtems_get_index( tid ) - \

View File

@@ -134,6 +134,7 @@ extern "C" {
putchar( '\n' ); \
}
#ifndef build_time
#define build_time( TB, MON, DAY, YR, HR, MIN, SEC, TK ) \
{ (TB)->year = YR; \
(TB)->month = MON; \
@@ -142,6 +143,7 @@ extern "C" {
(TB)->minute = MIN; \
(TB)->second = SEC; \
(TB)->ticks = TK; }
#endif
#define task_number( tid ) \
( rtems_get_index( tid ) - \