diff options
author | Kevin Ryde <user42@zip.com.au> | 2002-03-28 00:18:53 +0100 |
---|---|---|
committer | Kevin Ryde <user42@zip.com.au> | 2002-03-28 00:18:53 +0100 |
commit | 2d63aca980f6eb32a9d65d01248280921e14561e (patch) | |
tree | 65cebc7b9af05701fead22ce9b46d987580aea30 /demos | |
parent | aebcb3a057ab5c12d7b23682d9b8437399f1c3e3 (diff) | |
download | gmp-2d63aca980f6eb32a9d65d01248280921e14561e.tar.gz |
* demos/expr/run-expr.c: Declare optarg, optind, opterr if necessary.
Diffstat (limited to 'demos')
-rw-r--r-- | demos/expr/run-expr.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/demos/expr/run-expr.c b/demos/expr/run-expr.c index 1146f5fca..70ef8c040 100644 --- a/demos/expr/run-expr.c +++ b/demos/expr/run-expr.c @@ -1,7 +1,6 @@ -/* Demo program to run expression evaluation. */ +/* Demo program to run expression evaluation. -/* -Copyright 2000, 2001 Free Software Foundation, Inc. +Copyright 2000, 2001, 2002 Free Software Foundation, Inc. This file is part of the GNU MP Library. @@ -18,8 +17,7 @@ License for more details. You should have received a copy of the GNU Lesser General Public License along with the GNU MP Library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, -MA 02111-1307, USA. -*/ +MA 02111-1307, USA. */ /* Usage: ./run-expr [-z] [-q] [-f] [-r] [-p prec] [-b base] expression... @@ -45,6 +43,10 @@ MA 02111-1307, USA. #include "expr.h" +#if ! HAVE_DECL_OPTARG +extern char *optarg; +extern int optind, opterr; +#endif #define TRY(exprfun, outfun, str) \ |