mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-12-05 15:15:44 +00:00
Added ifndef around build_time so pmacros.h and tmacros.h could be included
by the same application.
This commit is contained in:
@@ -134,6 +134,7 @@ extern "C" {
|
|||||||
putchar( '\n' ); \
|
putchar( '\n' ); \
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifndef build_time
|
||||||
#define build_time( TB, MON, DAY, YR, HR, MIN, SEC, TK ) \
|
#define build_time( TB, MON, DAY, YR, HR, MIN, SEC, TK ) \
|
||||||
{ (TB)->year = YR; \
|
{ (TB)->year = YR; \
|
||||||
(TB)->month = MON; \
|
(TB)->month = MON; \
|
||||||
@@ -142,6 +143,7 @@ extern "C" {
|
|||||||
(TB)->minute = MIN; \
|
(TB)->minute = MIN; \
|
||||||
(TB)->second = SEC; \
|
(TB)->second = SEC; \
|
||||||
(TB)->ticks = TK; }
|
(TB)->ticks = TK; }
|
||||||
|
#endif
|
||||||
|
|
||||||
#define task_number( tid ) \
|
#define task_number( tid ) \
|
||||||
( rtems_get_index( tid ) - \
|
( rtems_get_index( tid ) - \
|
||||||
|
|||||||
@@ -134,6 +134,7 @@ extern "C" {
|
|||||||
putchar( '\n' ); \
|
putchar( '\n' ); \
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifndef build_time
|
||||||
#define build_time( TB, MON, DAY, YR, HR, MIN, SEC, TK ) \
|
#define build_time( TB, MON, DAY, YR, HR, MIN, SEC, TK ) \
|
||||||
{ (TB)->year = YR; \
|
{ (TB)->year = YR; \
|
||||||
(TB)->month = MON; \
|
(TB)->month = MON; \
|
||||||
@@ -142,6 +143,7 @@ extern "C" {
|
|||||||
(TB)->minute = MIN; \
|
(TB)->minute = MIN; \
|
||||||
(TB)->second = SEC; \
|
(TB)->second = SEC; \
|
||||||
(TB)->ticks = TK; }
|
(TB)->ticks = TK; }
|
||||||
|
#endif
|
||||||
|
|
||||||
#define task_number( tid ) \
|
#define task_number( tid ) \
|
||||||
( rtems_get_index( tid ) - \
|
( rtems_get_index( tid ) - \
|
||||||
|
|||||||
Reference in New Issue
Block a user