]>
git.proxmox.com Git - libgit2.git/blob - src/common.h
2 * Copyright (C) 2009-2011 the libgit2 contributors
4 * This file is part of libgit2, distributed under the GNU GPL v2 with
5 * a Linking Exception. For full terms see the included COPYING file.
7 #ifndef INCLUDE_common_h__
8 #define INCLUDE_common_h__
10 #include "git2/common.h"
11 #include "cc-compat.h"
20 #include <sys/types.h>
28 # include "win32/msvc-compat.h"
29 # include "win32/mingw-compat.h"
31 # include "win32/pthread.h"
34 # define snprintf _snprintf
44 #include "git2/types.h"
45 #include "git2/errors.h"
46 #include "thread-utils.h"
49 extern void git___throw(const char *, ...) GIT_FORMAT_PRINTF(1, 2);
50 #define git__throw(error, ...) \
51 (git___throw(__VA_ARGS__), error)
53 extern void git___rethrow(const char *, ...) GIT_FORMAT_PRINTF(1, 2);
54 #define git__rethrow(error, ...) \
55 (git___rethrow(__VA_ARGS__), error)
60 #endif /* INCLUDE_common_h__ */