I have the following (working) code in an existing code base, used in include file that is shared between C and C++, compiling on MSVC (2010) and Windows DDK:
struct X {
USHORT x;
} typedef X, *PX;
And:
enum MY_ENUM {
enum_item_1,
enum_item_2
} typedef MY_ENUM;
As far as I know, correct definition should look like this:
typedef struct {
USHORT x;
} X, *PX;
Is there any purpose for having the form below? Am I missing something?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…