summaryrefslogtreecommitdiffstats
path: root/src/getopt.h
diff options
context:
space:
mode:
authorEvan Martin <martine@danga.com>2011-05-02 03:08:01 (GMT)
committerEvan Martin <martine@danga.com>2011-05-02 14:21:39 (GMT)
commitd402c39e9d0c7cb87f550a2e3ac6dc074b528a17 (patch)
treeb08469229faec89e0f8d34822df5805aa1052c9d /src/getopt.h
parent0796f771c37ec5287c791038051420c5e014f6f2 (diff)
downloadNinja-d402c39e9d0c7cb87f550a2e3ac6dc074b528a17.zip
Ninja-d402c39e9d0c7cb87f550a2e3ac6dc074b528a17.tar.gz
Ninja-d402c39e9d0c7cb87f550a2e3ac6dc074b528a17.tar.bz2
windows: getopt const clean hack
Diffstat (limited to 'src/getopt.h')
-rw-r--r--src/getopt.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/getopt.h b/src/getopt.h
index 49a107e..20a7dc7 100644
--- a/src/getopt.h
+++ b/src/getopt.h
@@ -13,7 +13,7 @@
/* GETOPT_LONG_OPTION_T: The type of long option */
typedef struct GETOPT_LONG_OPTION_T
{
- char *name; /* the name of the long option */
+ const char *name; /* the name of the long option */
int has_arg; /* one of the above macros */
int *flag; /* determines if getopt_long() returns a
* value for a long option; if it is
@@ -40,9 +40,9 @@ extern "C"
/* function prototypes */
int getopt (int argc, char **argv, char *optstring);
- int getopt_long (int argc, char **argv, char *shortopts,
+ int getopt_long (int argc, char **argv, const char *shortopts,
GETOPT_LONG_OPTION_T * longopts, int *longind);
- int getopt_long_only (int argc, char **argv, char *shortopts,
+ int getopt_long_only (int argc, char **argv, const char *shortopts,
GETOPT_LONG_OPTION_T * longopts, int *longind);
#ifdef __cplusplus