This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Redefinition of typedefs, and ##



Sorry to post such a trivial question,
but does anyone know which compiler options I need
to gcc the following C code (-traditional fixes the
forward definition problem, but breaks the ##)


typedef struct _foo FOO;

typedef struct _foo {
	int i;
} FOO;

# define __intN_t(N, MODE) \
  typedef int int##N##_t __attribute__ ((__mode__ (MODE)))

__intN_t (8, __QI__);


Thanks, Joe


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]