(__GNU_LIBRARY__) [lint]: Define to work around

problem with latest <getopt.h>.
(HACK_FOR___GNU_LIBRARY___PROTOTYPE): New macro.
This commit is contained in:
Paul Eggert
2002-12-13 11:41:21 +00:00
parent fc659dfd69
commit f47dbf6bef

View File

@@ -24,8 +24,20 @@
#include <argmatch.h>
#include <error.h>
/* Hack to get <getopt.h> to declare getopt with a prototype. */
#if lint && ! defined __GNU_LIBRARY__
# define __GNU_LIBRARY__
# define HACK_FOR___GNU_LIBRARY___PROTOTYPE 1
#endif
#include <getopt.h>
#ifdef HACK_FOR___GNU_LIBRARY___PROTOTYPE
# undef __GNU_LIBRARY__
# undef HACK_FOR___GNU_LIBRARY___PROTOTYPE
#endif
#include "complain.h"
#include "files.h"
#include "getargs.h"