Developer Documentation
Loading...
Searching...
No Matches
getopt.h
1#ifndef _GETOPT_H_
2#define _GETOPT_H_
3
4#include <OpenMesh/Core/System/compiler.hh>
5#include <OpenMesh/Core/System/OpenMeshDLLMacros.hh>
6
7#if defined(_MSC_VER)
8 #if defined(__cplusplus)
9
10 extern "C" {
11
12 extern OPENMESHDLLEXPORT int opterr;
13 extern OPENMESHDLLEXPORT int optind;
14 extern OPENMESHDLLEXPORT int optopt;
15 extern OPENMESHDLLEXPORT int optreset;
16 extern OPENMESHDLLEXPORT char *optarg;
17
18 OPENMESHDLLEXPORT extern int getopt(int nargc, char * const *nargv, const char *ostr);
19
20 }
21
22 #endif
23
24#elif defined __APPLE__ || defined(__FreeBSD__)
25 #include <unistd.h>
26#else
27 #include <getopt.h>
28#endif
29
30#endif /* _GETOPT_H_ */