summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2000-08-28 10:43:20 +0000
committerBruno Haible <bruno@clisp.org>2000-08-28 10:43:20 +0000
commit71a393d4b30699cfd5a03400cefa958521f85e89 (patch)
tree4295741e8578f55a90825ea9b7614df7fb16faab /lib
parentb2354903c7bd53582da3b04856798309a9237672 (diff)
downloadgperf-71a393d4b30699cfd5a03400cefa958521f85e89.tar.gz
Avoid warnings from Sun CC and HP-UX aCC.
Diffstat (limited to 'lib')
-rw-r--r--lib/getopt.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/getopt.h b/lib/getopt.h
index 5be6319..a9d75f2 100644
--- a/lib/getopt.h
+++ b/lib/getopt.h
@@ -1,5 +1,5 @@
/* 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.
The GNU C Library is free software; you can redistribute it and/or
@@ -78,7 +78,7 @@ extern int optopt;
struct option
{
-#if defined (__STDC__) && __STDC__
+#if (defined (__STDC__) && __STDC__) || defined (__cplusplus)
const char *name;
#else
char *name;