4
/* adapted from compat.h in git-1.6.1.2 */
6
#if !defined(__APPLE__) && !defined(__FreeBSD__) && !defined(__USLC__) && !defined(_M_UNIX)
7
# define _XOPEN_SOURCE 600 /* glibc2 and AIX 5.3L need 500, OpenBSD needs 600 for S_ISLNK() */
8
# define _XOPEN_SOURCE_EXTENDED 1 /* AIX 5.3L needs this */
26
#include <sys/param.h>
27
#include <sys/types.h>
34
# define dirent fl_dirent_no_thanks
37
# include <sys/utsname.h>
42
#include "compat-mingw.h"
48
#if defined(__WOE32__) && (!defined(__GNUC__) || __GNUC__ < 4)
49
# define SNPRINTF_RETURNS_BOGUS 1
51
# define SNPRINTF_RETURNS_BOGUS 0
54
#if SNPRINTF_RETURNS_BOGUS
55
#define snprintf git_snprintf
56
extern int git_snprintf(char *str, size_t maxsize,
57
const char *format, ...);
58
#define vsnprintf git_vsnprintf
59
extern int git_vsnprintf(char *str, size_t maxsize,
60
const char *format, va_list ap);