summaryrefslogtreecommitdiffstats
path: root/cpukit
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2001-10-22 11:55:44 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2001-10-22 11:55:44 +0000
commit6244ab4e0f66e362d1cde74c92ae79f8c2e1e865 (patch)
tree20319c1e8c02ab54ce4b48ca5e11eb86adf16b5a /cpukit
parent0c40eb306447decb934569f5df76742f104fcd4c (diff)
downloadrtems-6244ab4e0f66e362d1cde74c92ae79f8c2e1e865.tar.bz2
2001-10-22 Joel Sherrill <joel@OARcorp.com>
* src/threadhandler.c: Use __USE_INIT_FINI__ since USE_INIT_FINI pollutes the application namespace.
Diffstat (limited to 'cpukit')
-rw-r--r--cpukit/score/ChangeLog5
-rw-r--r--cpukit/score/src/threadhandler.c6
2 files changed, 8 insertions, 3 deletions
diff --git a/cpukit/score/ChangeLog b/cpukit/score/ChangeLog
index 7f4174c23a..77b14250c3 100644
--- a/cpukit/score/ChangeLog
+++ b/cpukit/score/ChangeLog
@@ -1,4 +1,9 @@
+2001-10-22 Joel Sherrill <joel@OARcorp.com>
+
+ * src/threadhandler.c: Use __USE_INIT_FINI__ since USE_INIT_FINI
+ pollutes the application namespace.
+
2001-10-16 Joel Sherrill <joel@OARcorp.com>
* .cvsignore: Add stamp-h.in.
diff --git a/cpukit/score/src/threadhandler.c b/cpukit/score/src/threadhandler.c
index d3755f4466..84618751fd 100644
--- a/cpukit/score/src/threadhandler.c
+++ b/cpukit/score/src/threadhandler.c
@@ -58,7 +58,7 @@ void _Thread_Handler( void )
{
ISR_Level level;
Thread_Control *executing;
-#ifdef USE_INIT_FINI
+#if defined(__USE_INIT_FINI__)
static char doneConstructors;
char doneCons;
#endif
@@ -73,7 +73,7 @@ void _Thread_Handler( void )
level = executing->Start.isr_level;
_ISR_Set_level(level);
-#ifdef USE_INIT_FINI
+#if defined(__USE_INIT_FINI__)
doneCons = doneConstructors;
doneConstructors = 1;
#endif
@@ -91,7 +91,7 @@ void _Thread_Handler( void )
*/
_Thread_Enable_dispatch();
-#ifdef USE_INIT_FINI
+#if defined(__USE_INIT_FINI__)
if (!doneCons)
_init ();
#endif