summaryrefslogtreecommitdiff
path: root/gcc/gbl-ctors.h
diff options
context:
space:
mode:
authorrms <rms@138bc75d-0d04-0410-961f-82ee72b054a4>1992-07-21 18:49:45 +0000
committerrms <rms@138bc75d-0d04-0410-961f-82ee72b054a4>1992-07-21 18:49:45 +0000
commit66d80e6b159db5c465ef4ab96b8e901a0194ebc9 (patch)
treeee923cdff9cd9bf1da24530be2be626fcb493d53 /gcc/gbl-ctors.h
parent3e973ab9a83f10786d94c39817620ce214989814 (diff)
downloadgcc-66d80e6b159db5c465ef4ab96b8e901a0194ebc9.tar.gz
entered into RCS
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@1654 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/gbl-ctors.h')
-rw-r--r--gcc/gbl-ctors.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/gbl-ctors.h b/gcc/gbl-ctors.h
index d99f6222f80..13048cefe45 100644
--- a/gcc/gbl-ctors.h
+++ b/gcc/gbl-ctors.h
@@ -31,13 +31,13 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
Note that this file should only be compiled with GCC.
*/
-#ifdef sun
-extern void on_exit (void*, void*);
-#define ON_EXIT(FUNC,ARG) on_exit ((FUNC), (ARG))
-#else
#ifdef HAVE_ATEXIT
extern void atexit (void (*) (void));
#define ON_EXIT(FUNC,ARG) atexit ((FUNC))
+#else
+#ifdef sun
+extern void on_exit (void*, void*);
+#define ON_EXIT(FUNC,ARG) on_exit ((FUNC), (ARG))
#endif
#endif