From d19dfa6ee1573633698a5c13efe50dcca5f77a0e Mon Sep 17 00:00:00 2001 From: Matthias Andree Date: Sun, 12 Dec 2010 18:26:02 +0100 Subject: C++ compatibility hack. --- getopt.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'getopt.h') diff --git a/getopt.h b/getopt.h index 4ac33b71..97b62317 100644 --- a/getopt.h +++ b/getopt.h @@ -95,7 +95,7 @@ struct option #define optional_argument 2 #if defined (__STDC__) && __STDC__ -#ifdef __GNU_LIBRARY__ +#if defined (__GNU_LIBRARY__) || defined(__cplusplus) /* Many other libraries have conflicting prototypes for getopt, with differences in the consts, in stdlib.h. To avoid compilation errors, only prototype getopt for the GNU C library. */ -- cgit v1.2.3