]>
git.proxmox.com Git - libgit2.git/blob - src/common.h
1 #ifndef INCLUDE_common_h__
2 #define INCLUDE_common_h__
4 #include "git2/common.h"
6 /** Force 64 bit off_t size on POSIX. */
7 #define _FILE_OFFSET_BITS 64
9 #include "git2/thread-utils.h"
10 #include "cc-compat.h"
12 #ifdef GIT_HAVE_INTTYPES_H
13 # include <inttypes.h>
22 #include <sys/types.h>
30 # include "msvc-compat.h"
31 # include "mingw-compat.h"
33 # include "win32/pthread.h"
36 # define snprintf _snprintf
38 typedef SSIZE_T ssize_t
;
48 #include "git2/types.h"
49 #include "git2/errors.h"
50 #include "thread-utils.h"
53 extern int git__throw(int error
, const char *, ...) GIT_FORMAT_PRINTF(2, 3);
54 extern int git__rethrow(int error
, const char *, ...) GIT_FORMAT_PRINTF(2, 3);
58 #endif /* INCLUDE_common_h__ */