diff options
author | Nico Weber <thakis@chromium.org> | 2014-09-18 23:08:25 (GMT) |
---|---|---|
committer | Nico Weber <thakis@chromium.org> | 2014-09-18 23:09:20 (GMT) |
commit | ac047b1f7efe3e90c2759864b57fd7c0d9404313 (patch) | |
tree | 22393d34d3ae63cf375841e127a02b8d89cdf65d /src/getopt.h | |
parent | ff2739b118ca8a3c2e0f2709a2852acced0d8407 (diff) | |
download | Ninja-ac047b1f7efe3e90c2759864b57fd7c0d9404313.zip Ninja-ac047b1f7efe3e90c2759864b57fd7c0d9404313.tar.gz Ninja-ac047b1f7efe3e90c2759864b57fd7c0d9404313.tar.bz2 |
Fix building tests on Windows again.
Turns out gtest was pulling in sys/stat.h, and we were
using stat() through that in tests. This doesn't work
with old MSVCs, so we should probably replace that with
RealDiskInterface in a follow-up.
Diffstat (limited to 'src/getopt.h')
-rw-r--r-- | src/getopt.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/getopt.h b/src/getopt.h index ead9878..b4247fb 100644 --- a/src/getopt.h +++ b/src/getopt.h @@ -4,9 +4,9 @@ /* include files needed by this include file */ /* macros defined by this include file */ -#define no_argument 0 -#define REQUIRED_ARG 1 -#define OPTIONAL_ARG 2 +#define no_argument 0 +#define required_argument 1 +#define OPTIONAL_ARG 2 /* types defined by this include file */ |