Ignore:
Timestamp:
Aug 16, 2003, 6:59:22 PM (22 years ago)
Author:
bird
Message:

binutils v2.14 - offical sources.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/GNU/src/binutils/include/getopt.h

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.1.1.2
    r608 r609  
    11/* Declarations for getopt.
    2    Copyright 1989, 1990, 1991, 1992, 1993, 1994, 1996, 1997, 1998, 2000
    3    Free Software Foundation, Inc.
     2   Copyright 1989, 1990, 1991, 1992, 1993, 1994, 1996, 1997, 1998, 2000,
     3   2002 Free Software Foundation, Inc.
    44
    55   NOTE: The canonical source of this file is maintained with the GNU C Library.
     
    106106   to find the declaration so provide a fully prototyped one.  If it
    107107   is 1, we found it so don't provide any declaration at all.  */
    108 #if defined (__GNU_LIBRARY__) || (defined (HAVE_DECL_GETOPT) && !HAVE_DECL_GETOPT)
     108#if !HAVE_DECL_GETOPT
     109#if defined (__GNU_LIBRARY__) || defined (HAVE_DECL_GETOPT)
    109110/* Many other libraries have conflicting prototypes for getopt, with
    110    differences in the consts, in stdlib.h.  To avoid compilation
     111   differences in the consts, in unistd.h.  To avoid compilation
    111112   errors, only prototype getopt for the GNU C library.  */
    112113extern int getopt (int argc, char *const *argv, const char *shortopts);
    113 #else /* not __GNU_LIBRARY__ */
    114 # if !defined (HAVE_DECL_GETOPT)
     114#else
     115#ifndef __cplusplus
    115116extern int getopt ();
    116 # endif
    117 #endif /* __GNU_LIBRARY__ */
     117#endif /* __cplusplus */
     118#endif
     119#endif /* !HAVE_DECL_GETOPT */
     120
    118121extern int getopt_long (int argc, char *const *argv, const char *shortopts,
    119122                        const struct option *longopts, int *longind);
Note: See TracChangeset for help on using the changeset viewer.