diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 1999-03-25 03:49:34 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 1999-03-25 03:49:34 +0000 |
commit | 6febecc569f42817b7b86a167a38e682317a6c2c (patch) | |
tree | 7dddca9d4e5e9ddde660f11042738a007b591eee /src/include/postgres.h | |
parent | d471f8073a51a7769efad581e017e7c0fd5e9e84 (diff) | |
download | postgresql-6febecc569f42817b7b86a167a38e682317a6c2c.tar.gz postgresql-6febecc569f42817b7b86a167a38e682317a6c2c.zip |
Clean up att_align calculations so that XXXALIGN macros
need not be bogus.
Diffstat (limited to 'src/include/postgres.h')
-rw-r--r-- | src/include/postgres.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/include/postgres.h b/src/include/postgres.h index ed625cd07d0..ab57059295f 100644 --- a/src/include/postgres.h +++ b/src/include/postgres.h @@ -6,7 +6,7 @@ * * Copyright (c) 1995, Regents of the University of California * - * $Id: postgres.h,v 1.20 1999/02/13 23:20:46 momjian Exp $ + * $Id: postgres.h,v 1.21 1999/03/25 03:49:28 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -92,9 +92,14 @@ typedef struct varlena text; typedef int2 int28[8]; typedef Oid oid8[8]; -typedef struct nameData +/* We want NameData to have length NAMEDATALEN and int alignment, + * because that's how the data type 'name' is defined in pg_type. + * Use a union to make sure the compiler agrees. + */ +typedef union nameData { char data[NAMEDATALEN]; + int alignmentDummy; } NameData; typedef NameData *Name; |