1
0
Fork 0

Use TerraGear getopt_long on Mac.

BSD getopt_long seems to differ in some key ways, and crashes (probably due to ambiguous externs). Use the TG local code on Mac to resolve this.
This commit is contained in:
James Turner 2012-11-25 21:39:37 +00:00
parent be0ff2258c
commit d2b059c789

View file

@ -31,13 +31,19 @@
#include <errno.h>
#include <stdlib.h>
#include <string.h>
#ifndef _MSC_VER
# include <unistd.h>
# include <getopt.h>
# ifdef __APPLE__
# include <Prep/Terra/getopt.h>
# else
# include <getopt.h>
# endif
#else
# define S_ISDIR(a) ((a)&_S_IFDIR)
# include <Prep/Terra/getopt.h>
#endif
#include <zlib.h>
#include <simgear/debug/logstream.hxx>