forked from github/server
fix autoconf usage, force my OSX build to use it
This commit is contained in:
parent
31ff07cbec
commit
2f81dc16b2
|
@ -23,6 +23,9 @@ OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||||
#define LOMEM
|
#define LOMEM
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#undef USE_AUTOCONF
|
||||||
|
#define USE_AUTOCONF
|
||||||
|
|
||||||
#ifdef _MSC_VER
|
#ifdef _MSC_VER
|
||||||
# define VC_EXTRALEAN
|
# define VC_EXTRALEAN
|
||||||
# define WIN32_LEAN_AND_MEAN
|
# define WIN32_LEAN_AND_MEAN
|
||||||
|
@ -78,7 +81,10 @@ OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||||
# define _CRTDBG_MAP_ALLOC
|
# define _CRTDBG_MAP_ALLOC
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#elif defined __GLIBC__
|
#undef USE_AUTOCONF
|
||||||
|
#elif __GNUC__
|
||||||
|
#include <features.h>
|
||||||
|
#if __GLIBC__ >= 2
|
||||||
# define _POSIX_C_SOURCE 200809L
|
# define _POSIX_C_SOURCE 200809L
|
||||||
# undef _DEFAULT_SOURCE
|
# undef _DEFAULT_SOURCE
|
||||||
# define _DEFAULT_SOURCE
|
# define _DEFAULT_SOURCE
|
||||||
|
@ -88,11 +94,11 @@ OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||||
# define HAVE_SYS_STAT_MKDIR
|
# define HAVE_SYS_STAT_MKDIR
|
||||||
# define HAVE_STRDUP
|
# define HAVE_STRDUP
|
||||||
# define HAVE_UNISTD_H
|
# define HAVE_UNISTD_H
|
||||||
#elif defined SOLARIS
|
# undef USE_AUTOCONF
|
||||||
# define _SYS_PROCSET_H
|
#endif
|
||||||
#undef _XOPEN_SOURCE
|
#endif
|
||||||
# define _XOPEN_SOURCE
|
|
||||||
#else
|
#ifdef USE_AUTOCONF
|
||||||
#include <autoconf.h>
|
#include <autoconf.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -164,9 +170,8 @@ typedef unsigned char _Bool;
|
||||||
|
|
||||||
#if !defined(HAVE__STRDUP)
|
#if !defined(HAVE__STRDUP)
|
||||||
#if defined(HAVE_STRDUP)
|
#if defined(HAVE_STRDUP)
|
||||||
|
#undef _strdup
|
||||||
#define _strdup(a) strdup(a)
|
#define _strdup(a) strdup(a)
|
||||||
#else
|
|
||||||
#define _strdup(a) lcp_strdup(a)
|
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -176,19 +181,5 @@ typedef unsigned char _Bool;
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !defined(HAVE__STRCMPL)
|
|
||||||
#if defined(HAVE_STRCMPL)
|
|
||||||
#define _strcmpl(a, b) strcmpl(a, b)
|
|
||||||
#elif defined(HAVE__STRICMP)
|
|
||||||
#define _strcmpl(a, b) _stricmp(a, b)
|
|
||||||
#elif defined(HAVE_STRICMP)
|
|
||||||
#define _strcmpl(a, b) stricmp(a, b)
|
|
||||||
#elif defined(HAVE_STRCASECMP)
|
|
||||||
#define _strcmpl(a, b) strcasecmp(a, b)
|
|
||||||
#else
|
|
||||||
#define _strcmpl(a, b) lcp_strcmpl(a, b)
|
|
||||||
#endif
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue