mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-25 20:10:29 +00:00
Fix getopt again
This commit is contained in:
parent
507d7a0b0b
commit
74caabb823
6 changed files with 28 additions and 28 deletions
3
third_party/getopt/getopt.internal.h
vendored
3
third_party/getopt/getopt.internal.h
vendored
|
@ -1,7 +1,6 @@
|
|||
#ifndef COSMOPOLITAN_GETOPT_H_
|
||||
#define COSMOPOLITAN_GETOPT_H_
|
||||
#if defined(COSMOPOLITAN_GETOPT_LONG1_H_) || \
|
||||
defined(COSMOPOLITAN_GETOPT_LONG2_H_)
|
||||
#if defined(_GETOPT_CORE_H) || defined(_GETOPT_EXT_H)
|
||||
#error "don't mix getopt_long() with cosmo's getopt()"
|
||||
#endif
|
||||
|
||||
|
|
6
third_party/getopt/long1.h
vendored
6
third_party/getopt/long1.h
vendored
|
@ -1,5 +1,5 @@
|
|||
#ifndef COSMOPOLITAN_GETOPT_LONG1_H_
|
||||
#define COSMOPOLITAN_GETOPT_LONG1_H_
|
||||
#ifndef _GETOPT_CORE_H
|
||||
#define _GETOPT_CORE_H
|
||||
#ifdef COSMOPOLITAN_GETOPT_H_
|
||||
#error "don't mix getopt_long() with cosmo's getopt()"
|
||||
#endif
|
||||
|
@ -13,4 +13,4 @@ int getopt(int, char *const *, const char *);
|
|||
|
||||
COSMOPOLITAN_C_END_
|
||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
||||
#endif /* COSMOPOLITAN_GETOPT_LONG1_H_ */
|
||||
#endif /* _GETOPT_CORE_H */
|
||||
|
|
6
third_party/getopt/long2.h
vendored
6
third_party/getopt/long2.h
vendored
|
@ -1,5 +1,5 @@
|
|||
#ifndef COSMOPOLITAN_GETOPT_LONG2_H_
|
||||
#define COSMOPOLITAN_GETOPT_LONG2_H_
|
||||
#ifndef _GETOPT_EXT_H
|
||||
#define _GETOPT_EXT_H
|
||||
#ifdef COSMOPOLITAN_GETOPT_H_
|
||||
#error "don't mix getopt_long() with cosmo's getopt()"
|
||||
#endif
|
||||
|
@ -24,4 +24,4 @@ int getopt_long_only(int, char *const *, const char *, const struct option *,
|
|||
|
||||
COSMOPOLITAN_C_END_
|
||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
||||
#endif /* COSMOPOLITAN_GETOPT_LONG2_H_ */
|
||||
#endif /* _GETOPT_EXT_H */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue