summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/shared/bootcard.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2001-10-22 11:56:21 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2001-10-22 11:56:21 +0000
commitac6ddad170ac2df73ea90047b7d290e3b87fa8fb (patch)
treeac1e63703a3e45cfb2d48e27492b7008a9654247 /c/src/lib/libbsp/shared/bootcard.c
parent2001-10-22 Joel Sherrill <joel@OARcorp.com> (diff)
downloadrtems-ac6ddad170ac2df73ea90047b7d290e3b87fa8fb.tar.bz2
2001-10-22 Joel Sherrill <joel@OARcorp.com>
* bootcard.c: Use __USE_INIT_FINI__ since USE_INIT_FINI pollutes the application namespace.
Diffstat (limited to '')
-rw-r--r--c/src/lib/libbsp/shared/bootcard.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/c/src/lib/libbsp/shared/bootcard.c b/c/src/lib/libbsp/shared/bootcard.c
index 9cc2bb73f8..68342b32e5 100644
--- a/c/src/lib/libbsp/shared/bootcard.c
+++ b/c/src/lib/libbsp/shared/bootcard.c
@@ -18,7 +18,7 @@
#include <bsp.h>
-#ifdef USE_INIT_FINI
+#if defined(__USE_INIT_FINI__)
#include <stdlib.h> /* for atexit() */
#endif
@@ -36,7 +36,7 @@ posix_api_configuration_table BSP_POSIX_Configuration;
#endif
/* Initialize C++ global Ctor/Dtor and initializes exception handling. */
-#if defined(USE_INIT_FINI)
+#if defined(__USE_INIT_FINI__)
extern void _fini( void );
#endif
@@ -120,7 +120,7 @@ int boot_card(int argc, char **argv, char **envp)
* main() invoke the global constructors if there are any.
*/
-#ifdef USE_INIT_FINI
+#if defined(__USE_INIT_FINI__)
atexit( _fini );
#endif