diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2001-06-05 17:01:09 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2001-06-05 17:01:09 -0300 |
commit | da673d31aaa05e8dff60c0b601b9f15c4f9182a8 (patch) | |
tree | 3483e6d5be184b639091146d0c37f630a4b9dd6b | |
parent | 323da725778e1642caae85c66472e36729fdc3c6 (diff) | |
download | lua-da673d31aaa05e8dff60c0b601b9f15c4f9182a8.tar.gz lua-da673d31aaa05e8dff60c0b601b9f15c4f9182a8.tar.bz2 lua-da673d31aaa05e8dff60c0b601b9f15c4f9182a8.zip |
user can define extra alignment requirements
-rw-r--r-- | llimits.h | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: llimits.h,v 1.28 2001/03/26 14:31:49 roberto Exp roberto $ | 2 | ** $Id: llimits.h,v 1.29 2001/06/05 18:17:01 roberto Exp roberto $ |
3 | ** Limits, basic types, and some other `installation-dependent' definitions | 3 | ** Limits, basic types, and some other `installation-dependent' definitions |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -82,7 +82,10 @@ typedef unsigned char lu_byte; | |||
82 | 82 | ||
83 | 83 | ||
84 | /* type to ensure maximum alignment */ | 84 | /* type to ensure maximum alignment */ |
85 | union L_Umaxalign { double d; void *s; long l; }; | 85 | #ifndef LUSER_ALIGNMENT_T |
86 | #define LUSER_ALIGNMENT_T double | ||
87 | #endif | ||
88 | union L_Umaxalign { LUSER_ALIGNMENT_T u; void *s; long l; }; | ||
86 | 89 | ||
87 | 90 | ||
88 | 91 | ||