mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 04:13:03 +00:00
(__GNU_LIBRARY__) [lint]: Define to work around
problem with latest <getopt.h>. (HACK_FOR___GNU_LIBRARY___PROTOTYPE): New macro.
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user