summaryrefslogtreecommitdiff
path: root/libguile/__scm.h
diff options
context:
space:
mode:
Diffstat (limited to 'libguile/__scm.h')
-rw-r--r--libguile/__scm.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/libguile/__scm.h b/libguile/__scm.h
index 55f9f49e2..8bb1b1a0e 100644
--- a/libguile/__scm.h
+++ b/libguile/__scm.h
@@ -115,6 +115,16 @@
# define SCM_DEPRECATED SCM_API
#endif
+/* The SCM_ALIGNED macro, when defined, can be used to instruct the compiler
+ * to honor the given alignment constraint. */
+#if defined __GNUC__
+# define SCM_ALIGNED(x) __attribute__ ((aligned (x)))
+#elif defined __INTEL_COMPILER
+# define SCM_ALIGNED(x) __declspec (align (x))
+#else
+/* Don't know how to align things. */
+# undef SCM_ALIGNED
+#endif
/* {Supported Options}