aboutsummaryrefslogtreecommitdiff
path: root/libobjc/encoding.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2004-06-21 16:39:21 +0000
committerNick Clifton <nickc@gcc.gnu.org>2004-06-21 16:39:21 +0000
commite7ebc32a807629769f5848ec0f7a2ba7e3fa281f (patch)
tree84d1916ffb28b84935a242036a29961f90b59908 /libobjc/encoding.c
parentde6f27a82e25b500f5c63f0cf7123c6a0b1669fe (diff)
downloadgcc-e7ebc32a807629769f5848ec0f7a2ba7e3fa281f.zip
gcc-e7ebc32a807629769f5848ec0f7a2ba7e3fa281f.tar.gz
gcc-e7ebc32a807629769f5848ec0f7a2ba7e3fa281f.tar.bz2
* encoding.c (BITS_PER_UNIT): Define if a definition is not provided.
From-SVN: r83438
Diffstat (limited to 'libobjc/encoding.c')
-rw-r--r--libobjc/encoding.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/libobjc/encoding.c b/libobjc/encoding.c
index 4d45b44..248ab10b 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