mosesdecoder/util/getopt.hh

34 lines
472 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 UTIL_GETOPT_H
#define UTIL_GETOPT_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 /* UTIL_GETOPT_H */
#endif /* __GNUC__ */
2011-10-23 06:37:47 +04:00