From ac6ddad170ac2df73ea90047b7d290e3b87fa8fb Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Mon, 22 Oct 2001 11:56:21 +0000 Subject: 2001-10-22 Joel Sherrill * bootcard.c: Use __USE_INIT_FINI__ since USE_INIT_FINI pollutes the application namespace. --- c/src/lib/libbsp/shared/ChangeLog | 5 +++++ c/src/lib/libbsp/shared/bootcard.c | 6 +++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/c/src/lib/libbsp/shared/ChangeLog b/c/src/lib/libbsp/shared/ChangeLog index 09eb7cb25e..2df300d8e3 100644 --- a/c/src/lib/libbsp/shared/ChangeLog +++ b/c/src/lib/libbsp/shared/ChangeLog @@ -1,3 +1,8 @@ +2001-10-22 Joel Sherrill + + * bootcard.c: Use __USE_INIT_FINI__ since USE_INIT_FINI + pollutes the application namespace. + 2001-10-17 Joel Sherrill * timerstub.c: New stub file for BSPs that don't have timer hardware. 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 -#ifdef USE_INIT_FINI +#if defined(__USE_INIT_FINI__) #include /* 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 -- cgit v1.2.3