Files
openmesh/src/OpenMesh/Tools/Utils/getopt.h
Jan Möbius 279659856a More MINGW compatibility changes
(cherry picked from commit ec84b4750a)
2016-05-31 12:22:04 +02:00

31 lines
622 B
C

#ifndef _GETOPT_H_
#define _GETOPT_H_
#include <OpenMesh/Core/System/compiler.hh>
#include <OpenMesh/Core/System/OpenMeshDLLMacros.hh>
#if defined(_MSC_VER)
#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;
OPENMESHDLLEXPORT extern int getopt(int nargc, char * const *nargv, const char *ostr);
}
#endif
#elif defined __APPLE__
#include <unistd.h>
#else
#include <getopt.h>
#endif
#endif /* _GETOPT_H_ */