Avoid clash with mingw's definition of __argc and __argv as macros.
authorBruno Haible <bruno@clisp.org>
Mon, 23 Oct 2006 12:07:37 +0000 (12:07 +0000)
committerBruno Haible <bruno@clisp.org>
Mon, 23 Oct 2006 12:07:37 +0000 (12:07 +0000)
ChangeLog
lib/argp.h

index bf37605..a9eb085 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2006-10-23  Bruno Haible  <bruno@clisp.org>
+            Paul Eggert  <eggert@cs.ucla.edu>
+
+       * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
+       __argc, __argv from the declaration. (They are defined as macros on
+       mingw.)
+
 2006-10-22  Bruno Haible  <bruno@clisp.org>
 
        * doc/gnulib-intro.texi: New file.
index f22a56b..1b7cf3a 100644 (file)
@@ -413,11 +413,11 @@ struct argp_state
    returned.  This function may also call exit unless the ARGP_NO_HELP flag
    is set.  INPUT is a pointer to a value to be passed in to the parser.  */
 extern error_t argp_parse (const struct argp *__restrict __argp,
-                          int __argc, char **__restrict __argv,
+                          int /*argc*/, char **__restrict /*argv*/,
                           unsigned __flags, int *__restrict __arg_index,
                           void *__restrict __input);
 extern error_t __argp_parse (const struct argp *__restrict __argp,
-                            int __argc, char **__restrict __argv,
+                            int /*argc*/, char **__restrict /*argv*/,
                             unsigned __flags, int *__restrict __arg_index,
                             void *__restrict __input);
 \f