Commit f975fe90 by Jacques Germishuys Committed by Carlos Martín Nieto

Introduce GIT_ALIGN

parent 2f83bfce
...@@ -35,6 +35,14 @@ ...@@ -35,6 +35,14 @@
# define GIT_TYPEOF(x) # define GIT_TYPEOF(x)
#endif #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 GIT_UNUSED(x) ((void)(x))
/* Define the printf format specifer to use for size_t output */ /* Define the printf format specifer to use for size_t output */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment