diff options
author | Ludovic Courtès <ludo@gnu.org> | 2009-11-01 18:17:31 +0100 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2009-11-01 18:17:31 +0100 |
commit | 731dd0ce191bf4f3ba8fedfe0e08c0e67a966ce4 (patch) | |
tree | dd1ad47fdceebb013c42dc9b87c03c2fa5d79c0a /libguile/__scm.h | |
parent | b4246e5b2235bd01a24a5069ed683fc3c0f6f18c (diff) | |
parent | 5f236208d0d864546e59afa0f5a11c9b3ba14b10 (diff) | |
download | guile-731dd0ce191bf4f3ba8fedfe0e08c0e67a966ce4.tar.gz |
Merge branch 'bdw-gc-static-alloc'
Conflicts:
acinclude.m4
libguile/__scm.h
libguile/bdw-gc.h
libguile/eval.c
Diffstat (limited to 'libguile/__scm.h')
-rw-r--r-- | libguile/__scm.h | 10 |
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} |