getopt.h 646 Bytes
Newer Older
1 2 3 4
#ifndef _GETOPT_H_
#define _GETOPT_H_

#include <OpenMesh/Core/System/compiler.hh>
Mike Kremer's avatar
Mike Kremer committed
5
#include <OpenMesh/Core/System/OpenMeshDLLMacros.hh>
6

7
#if defined(_MSC_VER)
8 9 10 11 12 13 14 15 16
 #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;
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 29 30
#endif

#endif /* _GETOPT_H_ */