[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
hack to work around compatibility issue with gnulib getopt.c
From: |
Paul Eggert |
Subject: |
hack to work around compatibility issue with gnulib getopt.c |
Date: |
Fri, 13 Dec 2002 03:43:00 -0800 (PST) |
I installed this horrible hack. Most likely getopt should be fixed
instead....
2002-12-13 Paul Eggert <address@hidden>
* src/getargs.c (__GNU_LIBRARY__) [lint]: Define to work around
problem with latest <getopt.h>.
(HACK_FOR___GNU_LIBRARY___PROTOTYPE): New macro.
Index: getargs.c
===================================================================
RCS file: /cvsroot/bison/bison/src/getargs.c,v
retrieving revision 1.52
retrieving revision 1.53
diff -p -u -r1.52 -r1.53
--- getargs.c 13 Dec 2002 07:54:02 -0000 1.52
+++ getargs.c 13 Dec 2002 11:41:21 -0000 1.53
@@ -24,7 +24,19 @@
#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"
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- hack to work around compatibility issue with gnulib getopt.c,
Paul Eggert <=