aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2001-06-05 17:01:09 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2001-06-05 17:01:09 -0300
commitda673d31aaa05e8dff60c0b601b9f15c4f9182a8 (patch)
tree3483e6d5be184b639091146d0c37f630a4b9dd6b
parent323da725778e1642caae85c66472e36729fdc3c6 (diff)
downloadlua-da673d31aaa05e8dff60c0b601b9f15c4f9182a8.tar.gz
lua-da673d31aaa05e8dff60c0b601b9f15c4f9182a8.tar.bz2
lua-da673d31aaa05e8dff60c0b601b9f15c4f9182a8.zip
user can define extra alignment requirements
-rw-r--r--llimits.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/llimits.h b/llimits.h
index 2b288981..27df4ba1 100644
--- a/llimits.h
+++ b/llimits.h
@@ -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 */
85union L_Umaxalign { double d; void *s; long l; }; 85#ifndef LUSER_ALIGNMENT_T
86#define LUSER_ALIGNMENT_T double
87#endif
88union L_Umaxalign { LUSER_ALIGNMENT_T u; void *s; long l; };
86 89
87 90
88 91