Hello,
I'm working on library for Windows & Linux. I need to specify default alignment of struct members. In GCC you can do this by appending attributes after type definition, in VS.NET - before. Unfortunately, VAX gets my macrodef as typename. Try this:
#ifdef _WIN32
#define VC_ALIGN __declspec(align(1))
#define GCC_ALIGN
#else
#define VC_ALIGN
#define GCC_ALIGN __attribute__((aligned (1)))
#endif
typedef struct VC_ALIGN MyStruct_ {
int x;
} MyStruct GCC_ALIGN ;
GCC_ALIGN is colored blue (like other types, instead of purple). MyStruct is colored black (and it's unknown to VAX)
I'm using VS.NET 2003 & VAX 1237
Best Regards,
Daniel