mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-28 19:47:52 +00:00
Introduce GIT_ALIGN
This commit is contained in:
parent
2cd3cb8e03
commit
3aaa5c7b46
@ -35,6 +35,14 @@
|
||||
# define GIT_TYPEOF(x)
|
||||
#endif
|
||||
|
||||
#if defined(__GNUC__)
|
||||
# define GIT_ALIGN(x,size) x __attribute__ ((aligned(size)))
|
||||
#elif defined(_MSC_VER)
|
||||
# define GIT_ALIGN(x,size) __declspec(align(size)) x
|
||||
#else
|
||||
# define GIT_ALIGN(x,size) x
|
||||
#endif
|
||||
|
||||
#define GIT_UNUSED(x) ((void)(x))
|
||||
|
||||
/* Define the printf format specifer to use for size_t output */
|
||||
|
Loading…
Reference in New Issue
Block a user