mirror of
https://git.savannah.gnu.org/git/gperf.git
synced 2025-12-02 13:09:22 +00:00
Avoid warnings from Sun CC and HP-UX aCC.
This commit is contained in:
@@ -1,5 +1,8 @@
|
|||||||
2000-08-28 Bruno Haible <bruno@linuix.math.u-bordeaux.fr>
|
2000-08-28 Bruno Haible <bruno@linuix.math.u-bordeaux.fr>
|
||||||
|
|
||||||
|
* lib/getopt.h (struct option): Use "const" also when compiling in
|
||||||
|
C++ mode. Avoids warnings from Sun CC and HP-UX aCC.
|
||||||
|
|
||||||
* doc/Makefile.in (docdir): Change from $(datadir)/doc/@PACKAGE@ to
|
* doc/Makefile.in (docdir): Change from $(datadir)/doc/@PACKAGE@ to
|
||||||
$(prefix)/doc/@PACKAGE@, following the newest GNU standards.
|
$(prefix)/doc/@PACKAGE@, following the newest GNU standards.
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/* Declarations for getopt.
|
/* Declarations for getopt.
|
||||||
Copyright (C) 1989,90,91,92,93,94,96,97 Free Software Foundation, Inc.
|
Copyright (C) 1989-1998, 2000 Free Software Foundation, Inc.
|
||||||
This file is part of the GNU C Library.
|
This file is part of the GNU C Library.
|
||||||
|
|
||||||
The GNU C Library is free software; you can redistribute it and/or
|
The GNU C Library is free software; you can redistribute it and/or
|
||||||
@@ -78,7 +78,7 @@ extern int optopt;
|
|||||||
|
|
||||||
struct option
|
struct option
|
||||||
{
|
{
|
||||||
#if defined (__STDC__) && __STDC__
|
#if (defined (__STDC__) && __STDC__) || defined (__cplusplus)
|
||||||
const char *name;
|
const char *name;
|
||||||
#else
|
#else
|
||||||
char *name;
|
char *name;
|
||||||
|
|||||||
Reference in New Issue
Block a user