Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Johnston <jjohnstn@redhat.com>2004-09-14 22:12:53 +0400
committerJeff Johnston <jjohnstn@redhat.com>2004-09-14 22:12:53 +0400
commit98650d2fa2d2443ede83cc9f5d21d39e8078e60b (patch)
tree5497495f0c9328eb65766296b5589b08984afa37 /newlib/libc/stdlib/cxa_atexit.c
parent272871abe46d6c6e7329f20fb8665cc08910f9a9 (diff)
2004-09-14 Jeff Johnston <jjohnstn@redhat.com>
* configure.host: Add Cygwin sys directory. * configure.in: Do not set CRT0 for cygwin. * libc/configure.in: Ditto. * libc/sys/configure.in: Ditto. * configure: Regenerated. * libc/configure: Ditto. * libc/sys/configure: Ditto. * libc/include/sys/reent.h: Add __REENT_HAS_CXA_SUPPORT flag. * libc/stdlib/__atexit.c: Keep cxa support protected by new __REENT_HAS_CXA_SUPPORT flag. * libc/stdlib/__call_atexit.c: Ditto. * libc/stdlib/cxa_atexit.c: Ditto. * libc/stdlib/cxa_finalize.c: Ditto. * libc/sys/cygwin/Makefile.am: New file. * libc/sys/cygwin/Makefile.in: Ditto. * libc/sys/cygwin/aclocal.m4: Ditto. * libc/sys/cygwin/configure: Ditto. * libc/sys/cygwin/configure.in: Ditto. * libc/sys/cygwin/dummy.c: Ditto. * libc/sys/cygwin/sys/reent.h: Ditto. This file is stabilized version of reent.h.
Diffstat (limited to 'newlib/libc/stdlib/cxa_atexit.c')
-rw-r--r--newlib/libc/stdlib/cxa_atexit.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/newlib/libc/stdlib/cxa_atexit.c b/newlib/libc/stdlib/cxa_atexit.c
index 8c39236de..9b73372d6 100644
--- a/newlib/libc/stdlib/cxa_atexit.c
+++ b/newlib/libc/stdlib/cxa_atexit.c
@@ -8,6 +8,7 @@
#include <sys/lock.h>
#include "atexit.h"
+#ifdef __REENT_HAS_CXA_SUPPORT
/*
* Register a function to be performed at exit or DSO unload.
*/
@@ -21,3 +22,5 @@ _DEFUN (__cxa_atexit,
{
return __register_exitproc (__et_cxa, (void (*)(void)) fn, arg, d);
}
+
+#endif /* __REENT_HAS_CXA_SUPPORT */