X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=getopt.h;h=97b62317e8596cc74037e78868e84798cd46ab80;hb=d31db10231e9ed89f64fdf6e0fb7cae182aa377e;hp=4ac33b71824d389cbc70c9eb0f5e0b2073b28567;hpb=d78b61e3efaea197a6e5b2b72bf2981a9ed69461;p=~andy%2Ffetchmail 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. */