]>
git.proxmox.com Git - libgit2.git/blob - src/common.h
1 #ifndef INCLUDE_common_h__
2 #define INCLUDE_common_h__
4 /** Force 64 bit off_t size on POSIX. */
5 #define _FILE_OFFSET_BITS 64
7 #if defined(_WIN32) && !defined(__CYGWIN__)
11 #include "git2/thread-utils.h"
12 #include "cc-compat.h"
14 #ifdef GIT_HAVE_INTTYPES_H
15 # include <inttypes.h>
24 #include <sys/types.h>
32 # include "msvc-compat.h"
33 # include "mingw-compat.h"
35 # include "win32/pthread.h"
38 # define snprintf _snprintf
40 typedef SSIZE_T ssize_t
;
50 #include "git2/common.h"
51 #include "git2/types.h"
52 #include "git2/errors.h"
53 #include "thread-utils.h"
56 #define GIT_PATH_MAX 4096
57 extern int git__throw(int error
, const char *, ...) GIT_FORMAT_PRINTF(2, 3);
58 extern int git__rethrow(int error
, const char *, ...) GIT_FORMAT_PRINTF(2, 3);
62 #endif /* INCLUDE_common_h__ */