From 846240b7e17d3bb595486d29eeebff5c56fd0484 Mon Sep 17 00:00:00 2001 From: Dave Peticolas Date: Tue, 16 May 2000 23:47:05 +0000 Subject: [PATCH] Fix 32-bit alignment bug. git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@2342 57a11ea4-9604-0410-9ed3-97b8803252fd --- src/engine/guid/guid.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/engine/guid/guid.h b/src/engine/guid/guid.h index 459bcf7d1e..fe9c6578ca 100644 --- a/src/engine/guid/guid.h +++ b/src/engine/guid/guid.h @@ -31,9 +31,12 @@ /* This file defines an API for using globally unique identifiers. */ /* The type used to store guids */ -typedef struct _GUID +typedef union _GUID { unsigned char data[16]; + + int __align_me; /* this just ensures that GUIDs are 32-bit + * aligned on systems that need them to be. */ } GUID;