Changeset 7267 for trunk


Ignore:
Timestamp:
2004-05-04T10:02:49+12:00 (20 years ago)
Author:
davidb
Message:

Header now checks for #ifdef to see if getopt has been
defined elsewhere. If it has then it doesn't bother
with the infomation in this file since it might
conflict with newer definitions.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/src/mgpp/lib/getopt_old.h

    r2556 r7267  
    1515   along with this program; if not, write to the Free Software
    1616   Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
     17
     18#ifndef HAVE_DECL_GETOPT
    1719
    1820#ifndef _GETOPT_H
     
    103105  extern int getopt (int argc, char *const *argv, const char *shortopts);
    104106#else               /* not __GNU_LIBRARY__ */
    105   extern int getopt ();
     107  int getopt (int, char * const *, const char *);
    106108#endif              /* not __GNU_LIBRARY__ */
    107109  extern int getopt_long (int argc, char *const *argv, const char *shortopts,
     
    129131
    130132#endif              /* _GETOPT_H */
     133
     134#endif
Note: See TracChangeset for help on using the changeset viewer.