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 <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>
|
||||
|
|
Loading…
Reference in a new issue