Commit 16e845ef by Arnaud Charlet

gnatbl.c: [VMS] (_POSIX_EXIT): Define.

	* gnatbl.c: [VMS] (_POSIX_EXIT): Define.
	[VMS] (#define exit hack): Remove.

From-SVN: r94815
parent 8aceda64
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
* * * *
* C Implementation File * * C Implementation File *
* * * *
* Copyright (C) 1992-2003 Free Software Foundation, Inc. * * Copyright (C) 1992-2005 Free Software Foundation, Inc. *
* * * *
* GNAT is free software; you can redistribute it and/or modify it under * * GNAT is free software; you can redistribute it and/or modify it under *
* terms of the GNU General Public License as published by the Free Soft- * * terms of the GNU General Public License as published by the Free Soft- *
...@@ -24,6 +24,10 @@ ...@@ -24,6 +24,10 @@
* * * *
****************************************************************************/ ****************************************************************************/
#ifdef VMS
#define _POSIX_EXIT 1
#endif
#include "config.h" #include "config.h"
#include "system.h" #include "system.h"
...@@ -32,13 +36,6 @@ ...@@ -32,13 +36,6 @@
#endif #endif
#include "adaint.h" #include "adaint.h"
#ifdef VMS
#ifdef exit
#undef exit
#endif
#define exit __posix_exit
#endif
/* These can be set by command line arguments */ /* These can be set by command line arguments */
char *binder_path = 0; char *binder_path = 0;
char *linker_path = 0; char *linker_path = 0;
...@@ -138,7 +135,7 @@ process_args (int *p_argc, char *argv[]) ...@@ -138,7 +135,7 @@ process_args (int *p_argc, char *argv[])
if (! strcmp (argv[i], "-gnatbind")) if (! strcmp (argv[i], "-gnatbind"))
{ {
/* Explicit naming of binder. Grab the value then remove the /* Explicit naming of binder. Grab the value then remove the
two arguments from the argument list. */ two arguments from the argument list. */
if ( i + 1 >= *p_argc ) if ( i + 1 >= *p_argc )
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment