projects
/
platform
/
upstream
/
ninja.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6be76e5
)
Fix compilation warning with getopt_long() on MinGW.
author
Nicolas Despres
<nicolas.despres@gmail.com>
Sat, 19 Nov 2011 17:49:38 +0000
(18:49 +0100)
committer
Nicolas Despres
<nicolas.despres@gmail.com>
Sat, 19 Nov 2011 17:56:08 +0000
(18:56 +0100)
src/getopt.h
patch
|
blob
|
history
diff --git
a/src/getopt.h
b/src/getopt.h
index
20a7dc7
..
ead9878
100644
(file)
--- a/
src/getopt.h
+++ b/
src/getopt.h
@@
-41,9
+41,9
@@
extern "C"
/* function prototypes */
int getopt (int argc, char **argv, char *optstring);
int getopt_long (int argc, char **argv, const char *shortopts,
- GETOPT_LONG_OPTION_T * longopts, int *longind);
+
const
GETOPT_LONG_OPTION_T * longopts, int *longind);
int getopt_long_only (int argc, char **argv, const char *shortopts,
- GETOPT_LONG_OPTION_T * longopts, int *longind);
+
const
GETOPT_LONG_OPTION_T * longopts, int *longind);
#ifdef __cplusplus
};