2014-11-19 00:25:21 +08:00
|
|
|
#ifndef ACL_GETOPT_INCLUDE_H
|
|
|
|
#define ACL_GETOPT_INCLUDE_H
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include "acl_define.h"
|
|
|
|
|
|
|
|
extern ACL_API int acl_optind;
|
|
|
|
extern ACL_API char *acl_optarg;
|
|
|
|
|
|
|
|
ACL_API void acl_getopt_init(void);
|
2016-02-28 17:48:17 +08:00
|
|
|
ACL_API int acl_getopt(int argc, char *argv[], const char *opts);
|
2014-11-19 00:25:21 +08:00
|
|
|
|
2015-06-29 17:33:11 +08:00
|
|
|
#if defined(_WIN32) || defined(_WIN64)
|
2014-11-19 00:25:21 +08:00
|
|
|
# define optind acl_optind
|
|
|
|
# define optarg acl_optarg
|
|
|
|
# define getopt_init acl_getopt_init
|
|
|
|
# define getopt acl_getopt
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|