Commit f72ea456 authored by Jan Möbius's avatar Jan Möbius

Build fix for getopt.h on Apple. (Thanks to Adam Vandenberg for the fix)

git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/branches/OpenMesh-2.4.1@979 fdac6126-5c0c-442c-9429-916003d36597
parent 26f86454
...@@ -5,23 +5,26 @@ ...@@ -5,23 +5,26 @@
#include <OpenMesh/Core/System/OpenMeshDLLMacros.hh> #include <OpenMesh/Core/System/OpenMeshDLLMacros.hh>
#if defined(WIN32) #if defined(WIN32)
#if defined(__cplusplus) #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;
extern "C" { OPENMESHDLLEXPORT extern int getopt(int nargc, char * const *nargv, const char *ostr);
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>
# endif
#else #else
# include <getopt.h> #include <getopt.h>
#endif #endif
#endif /* _GETOPT_H_ */ #endif /* _GETOPT_H_ */
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment