bh_getopt.h 475 B

12345678910111213141516171819202122232425262728
  1. /*
  2. * Copyright (C) 2020 Ant Financial Services Group. All rights reserved.
  3. * SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  4. */
  5. #ifdef __GNUC__
  6. #include <getopt.h>
  7. #endif
  8. #ifndef __GNUC__
  9. #ifndef GETOPT_H__
  10. #define GETOPT_H__
  11. #ifdef __cplusplus
  12. extern "C" {
  13. #endif
  14. extern char *optarg;
  15. extern int optind;
  16. int
  17. getopt(int argc, char *const argv[], const char *optstring);
  18. #ifdef __cplusplus
  19. }
  20. #endif
  21. #endif /* end of GETOPT_H__ */
  22. #endif /* end of __GNUC__ */