Wireshark-dev: Re: [Wireshark-dev] unnamed structs - epan/dissectors/packet-ieee802154.h
From: Stephen Fisher <stephentfisher@xxxxxxxxx>
Date: Thu, 20 Mar 2008 22:16:36 -0600
On Fri, Mar 21, 2008 at 03:01:47PM +1100, Andrew Hood wrote:

> Is there any way to make use of unnamed structs a compilation error?

Not with gcc from what I can find so far.

> +#define dst_addr16 dst_addr.dst_addr16
> +#define dst_addr64 dst_addr.dst_addr64
> +#define src_addr16 src_addr.src_addr16
> +#define src_addr64 src_addr.src_addr64

Can't we just change the uses of dst_addr16 and so on to 
dst_addr.dst_addr16 and so on and avoid using #define?


Steve