mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-12-28 22:45:50 +03:00
34 lines
471 B
C++
34 lines
471 B
C++
/*
|
|
POSIX getopt for Windows
|
|
|
|
AT&T Public License
|
|
|
|
Code given out at the 1985 UNIFORUM conference in Dallas.
|
|
*/
|
|
|
|
#ifdef __GNUC__
|
|
#include <getopt.h>
|
|
#endif
|
|
#ifndef __GNUC__
|
|
|
|
#ifndef _WINGETOPT_H_
|
|
#define _WINGETOPT_H_
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
extern int opterr;
|
|
extern int optind;
|
|
extern int optopt;
|
|
extern char *optarg;
|
|
extern int getopt(int argc, char **argv, char *opts);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif /* _GETOPT_H_ */
|
|
#endif /* __GNUC__ */
|
|
|