From: Kurt Zeilenga Date: Mon, 13 Oct 2003 18:35:08 +0000 (+0000) Subject: Minor tweak to last commit X-Git-Tag: OPENLDAP_REL_ENG_2_1_MP~577 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=85990be2f46e9b2c91ea6a56f4fd549011c50689;p=openldap Minor tweak to last commit --- diff --git a/include/lber_pvt.h b/include/lber_pvt.h index e978f15bc2..69eaee3ced 100644 --- a/include/lber_pvt.h +++ b/include/lber_pvt.h @@ -22,10 +22,9 @@ LDAP_BEGIN_DECL /* for allocating aligned buffers (on the stack) */ -#define LBER_ALIGN_BUFFER(uname,size) \ - union LDAP_CONCAT(lber_,uname) { \ +#define LBER_ALIGNED_BUFFER(uname,size) \ + union uname { \ char buffer[size]; \ - \ /* force alignment */ \ int ialign; \ long lalign; \ @@ -35,7 +34,8 @@ LDAP_BEGIN_DECL } #define LBER_ELEMENT_SIZEOF (256) /* must be >= sizeof(BerElement) */ -typedef LBER_ALIGN_BUFFER(berelement_u,LBER_ELEMENT_SIZEOF) BerElementBuffer; +typedef LBER_ALIGNED_BUFFER(lber_berelement_u,LBER_ELEMENT_SIZEOF) + BerElementBuffer; typedef struct sockbuf_buf { ber_len_t buf_size;