diff options
Diffstat (limited to 'libraries/base/include/alignment.h')
-rw-r--r-- | libraries/base/include/alignment.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libraries/base/include/alignment.h b/libraries/base/include/alignment.h new file mode 100644 index 0000000000..cb2f7da35f --- /dev/null +++ b/libraries/base/include/alignment.h @@ -0,0 +1,3 @@ +#if __GLASGOW_HASKELL__ < 711 +#define hsc_alignment(t ) hsc_printf ( "%lu", (unsigned long)offsetof(struct {char x__; t(y__); }, y__)); +#endif |