Move *-*-gnu* pattern below *-*-linux*.
[official-gcc.git] / libf2c / libF77 / exit_.c
blob4c0582add127ea1735b7bb19c5a5f2d15cb5aaf9
1 /* This gives the effect of
3 subroutine exit(rc)
4 integer*4 rc
5 stop
6 end
8 * with the added side effect of supplying rc as the program's exit code.
9 */
11 #include "f2c.h"
12 #undef abs
13 #undef min
14 #undef max
15 #ifndef KR_headers
16 #include <stdlib.h>
17 #ifdef __cplusplus
18 extern "C" {
19 #endif
20 extern void f_exit(void);
21 #endif
23 void
24 #ifdef KR_headers
25 G77_exit_0 (rc) integer *rc;
26 #else
27 G77_exit_0 (integer *rc)
28 #endif
30 #ifdef NO_ONEXIT
31 f_exit();
32 #endif
33 exit(*rc);
35 #ifdef __cplusplus
37 #endif