1 #ifndef INCLUDE_common_h__
2 #define INCLUDE_common_h__
4 #if defined(_WIN32) && !defined(__CYGWIN__) && !defined(__MINGW32__)
8 #include "git/thread-utils.h"
11 #ifdef GIT_HAS_PTHREAD
14 #ifdef GIT_HAVE_INTTYPES_H
15 # include <inttypes.h>
24 #include <sys/types.h>
32 # define snprintf _snprintf
34 # if (defined(_MSC_VER) && defined(_WIN64)) || \
35 (defined(__DMC__) && defined(_M_AMD64))
36 typedef long long ssize_t
;
41 # if defined(_MSC_VER)
42 /* access() mode parameter #defines */
43 # define F_OK 0 /* existence check */
44 # define W_OK 2 /* write mode check */
45 # define R_OK 4 /* read mode check */
51 # include <arpa/inet.h>
55 #include "git/common.h"
57 #include "thread-utils.h"
60 #define GIT_PATH_MAX 4096
62 #ifndef GIT_HAVE_INTTYPES_H
63 /* add some missing <stdint.h> typedef's */
65 typedef unsigned long uint32_t;
67 typedef long long int64_t;
68 typedef unsigned long long uint64_t;
71 #endif /* INCLUDE_common_h__ */