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:
parent
be0ff2258c
commit
d2b059c789
1 changed files with 7 additions and 1 deletions
|
@ -31,13 +31,19 @@
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
#ifndef _MSC_VER
|
#ifndef _MSC_VER
|
||||||
# include <unistd.h>
|
# include <unistd.h>
|
||||||
# include <getopt.h>
|
# ifdef __APPLE__
|
||||||
|
# include <Prep/Terra/getopt.h>
|
||||||
|
# else
|
||||||
|
# include <getopt.h>
|
||||||
|
# endif
|
||||||
#else
|
#else
|
||||||
# define S_ISDIR(a) ((a)&_S_IFDIR)
|
# define S_ISDIR(a) ((a)&_S_IFDIR)
|
||||||
# include <Prep/Terra/getopt.h>
|
# include <Prep/Terra/getopt.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <zlib.h>
|
#include <zlib.h>
|
||||||
|
|
||||||
#include <simgear/debug/logstream.hxx>
|
#include <simgear/debug/logstream.hxx>
|
||||||
|
|
Loading…
Reference in a new issue