mirror of
https://gitee.com/acl-dev/acl.git
synced 2024-12-14 00:40:55 +08:00
fc3cae0a35
acl 重新支持VC2008编译器;在高版本VC编译器上,acl库尽量使用编译器建议安全的系统 API
27 lines
475 B
C
27 lines
475 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 WIN32
|
|
# define optind acl_optind
|
|
# define optarg acl_optarg
|
|
# define getopt_init acl_getopt_init
|
|
# define getopt acl_getopt
|
|
#endif
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
#endif
|
|
|