Files
openmesh/src/OpenMesh/Tools/Utils/getopt.h
Jan Möbius 6302f46f65 - Support building on FreeBSD
- Generate OpenMeshConfig.cmake

Thanks to Thibault Payet for the patch
2019-04-09 07:45:54 +02:00

31 lines
646 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__ || defined(__FreeBSD__)
#include <unistd.h>
#else
#include <getopt.h>
#endif
#endif /* _GETOPT_H_ */