which compiler? We are using GNU GCC/G++ on the 9000. Here are parts of my include files. #ifdef __mpexl # pragma list off # define _MPEXL_SOURCE 1 # define GCC_ALIGN(x) # define farptr ^ #else # define _HPUX_SOURCE 1 # define GCC_ALIGN(x) __attribute__ ((aligned (x))) # define farptr * #endif /*------- Alignment stuff -------*/ #ifdef __mpexl # pragma HP_ALIGN MPE_16 PUSH /* for HP-C on HP9000 use HP_ALIGN HPUX_WORD PUSH */ #endif typedef unsigned short u16h GCC_ALIGN(2); typedef int i32h GCC_ALIGN(2); typedef unsigned int u32h GCC_ALIGN(2); typedef float f32h GCC_ALIGN(2); typedef double f64h GCC_ALIGN(2); #ifdef __mpexl # pragma HP_ALIGN POP #endif /*------- Alignment stuff -------*/ typedef struct { char setname [16]; char settype [2]; i16 entrylen; i16 blockfactor; i16 res1; i16 res2; u32h numentries; u32h capacity; } dbinfo_202_t; ___________________________________________________________________ Keven Miller mailto:[log in to unmask] http://www.exegesys.com