diff options
author | nickc <nickc@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-06-21 16:39:21 +0000 |
---|---|---|
committer | nickc <nickc@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-06-21 16:39:21 +0000 |
commit | 371d0c11b600eec5385ee3a3cae97c7a13afc128 (patch) | |
tree | 84d1916ffb28b84935a242036a29961f90b59908 /libobjc/encoding.c | |
parent | 8024375ad927b5e8773a8974e7750447bbd34688 (diff) | |
download | gcc-371d0c11b600eec5385ee3a3cae97c7a13afc128.tar.gz |
* encoding.c (BITS_PER_UNIT): Define if a definition is not provided.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@83438 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libobjc/encoding.c')
-rw-r--r-- | libobjc/encoding.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libobjc/encoding.c b/libobjc/encoding.c index 4d45b4423df..248ab10bd9a 100644 --- a/libobjc/encoding.c +++ b/libobjc/encoding.c @@ -79,7 +79,10 @@ Boston, MA 02111-1307, USA. */ /* Some ports (eg ARM) allow the structure size boundary to be selected at compile-time. We override the normal definition with one that has a constant value for this compilation. */ -#undef STRUCTURE_SIZE_BOUNDARY +#ifndef BITS_PER_UNIT +#define BITS_PER_UNIT 8 +#endif +#undef STRUCTURE_SIZE_BOUNDARY #define STRUCTURE_SIZE_BOUNDARY (BITS_PER_UNIT * sizeof (struct{char a;})) /* Some ROUND_TYPE_ALIGN macros use TARGET_foo, and consequently |