mosesdecoder/util/getopt.hh

34 lines
471 B
C++
Raw Normal View History

/*
POSIX getopt for Windows
2011-10-23 06:37:47 +04:00
AT&T Public License
2011-10-23 06:37:47 +04:00
Code given out at the 1985 UNIFORUM conference in Dallas.
*/
2011-10-23 06:37:47 +04:00
#ifdef __GNUC__
#include <getopt.h>
2011-10-23 06:37:47 +04:00
#endif
#ifndef __GNUC__
2011-10-23 06:37:47 +04:00
#ifndef _WINGETOPT_H_
#define _WINGETOPT_H_
2011-10-23 06:37:47 +04:00
#ifdef __cplusplus
2011-10-23 06:37:47 +04:00
extern "C" {
#endif
extern int opterr;
extern int optind;
2011-10-23 06:37:47 +04:00
extern int optopt;
extern char *optarg;
extern int getopt(int argc, char **argv, char *opts);
2011-10-23 06:37:47 +04:00
#ifdef __cplusplus
2011-10-23 06:37:47 +04:00
}
#endif
#endif /* _GETOPT_H_ */
#endif /* __GNUC__ */
2011-10-23 06:37:47 +04:00