2009-02-06 13:37:46 +00:00
|
|
|
#ifndef _GETOPT_H_
|
|
|
|
|
#define _GETOPT_H_
|
|
|
|
|
|
|
|
|
|
#include <OpenMesh/Core/System/compiler.hh>
|
2012-09-24 10:10:22 +00:00
|
|
|
#include <OpenMesh/Core/System/OpenMeshDLLMacros.hh>
|
2009-02-06 13:37:46 +00:00
|
|
|
|
2016-05-30 16:26:01 +02:00
|
|
|
#if defined(_MSC_VER)
|
2013-11-28 11:11:26 +00:00
|
|
|
#if defined(__cplusplus)
|
|
|
|
|
|
|
|
|
|
extern "C" {
|
|
|
|
|
|
|
|
|
|
extern OPENMESHDLLEXPORT int opterr;
|
|
|
|
|
extern OPENMESHDLLEXPORT int optind;
|
|
|
|
|
extern OPENMESHDLLEXPORT int optopt;
|
|
|
|
|
extern OPENMESHDLLEXPORT int optreset;
|
|
|
|
|
extern OPENMESHDLLEXPORT char *optarg;
|
2009-02-06 13:37:46 +00:00
|
|
|
|
2013-11-28 11:11:26 +00:00
|
|
|
OPENMESHDLLEXPORT extern int getopt(int nargc, char * const *nargv, const char *ostr);
|
2009-02-06 13:37:46 +00:00
|
|
|
|
2013-11-28 11:11:26 +00:00
|
|
|
}
|
2009-02-06 13:37:46 +00:00
|
|
|
|
2013-11-28 11:11:26 +00:00
|
|
|
#endif
|
2009-02-06 13:37:46 +00:00
|
|
|
|
2019-04-09 07:45:54 +02:00
|
|
|
#elif defined __APPLE__ || defined(__FreeBSD__)
|
2013-11-28 11:11:26 +00:00
|
|
|
#include <unistd.h>
|
2009-02-06 13:37:46 +00:00
|
|
|
#else
|
2013-11-28 11:11:26 +00:00
|
|
|
#include <getopt.h>
|
2009-02-06 13:37:46 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
#endif /* _GETOPT_H_ */
|