I am developing my application using GCC 4.6 for compilation, but the user reported a "typedef override" error. After some confusion, when I improperly told the user to get the last source using Git, I looked carefully and found something similar to this:
#ifdef MYSTRUCT_H #define MYSTRUCT_H typedef struct _mystruct mystruct #endif #include "mystruct.h" typedef struct _mystruct { int a; int b; } mystruct;
Which is pretty easy to fix for older versions of GCC, but why is this no longer a bug? Or does he need reporting?
James morris
source share