wingetopt.h 522 B

1234567891011121314151617181920212223242526272829303132
  1. /*
  2. POSIX getopt for Windows
  3. AT&T Public License
  4. Code given out at the 1985 UNIFORUM conference in Dallas.
  5. */
  6. #ifndef _MSC_VER
  7. #include <getopt.h>
  8. #endif
  9. #ifdef _MSC_VER
  10. #ifndef _WINGETOPT_H_
  11. #define _WINGETOPT_H_
  12. #ifdef __cplusplus
  13. extern "C" {
  14. #endif
  15. extern int opterr;
  16. extern int optind;
  17. extern int optopt;
  18. extern char *optarg;
  19. extern int getopt(int argc, char * const argv[], const char *optstring);
  20. #ifdef __cplusplus
  21. }
  22. #endif
  23. #endif /* _GETOPT_H_ */
  24. #endif /* __GNUC__ */