acl/lib_acl/include/stdlib/acl_getopt.h
zsxxsz cc05b877a2 first commit acl to github
first commit acl to github
2013-08-18 17:42:25 +08:00

27 lines
484 B
C

#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);
ACL_API int acl_getopt(int argc, char **argv, const char *opts);
#ifdef ACL_MS_WINDOWS
# define optind acl_optind
# define optarg acl_optarg
# define getopt_init acl_getopt_init
# define getopt acl_getopt
#endif
#ifdef __cplusplus
}
#endif
#endif