Skip to content

[MSVC] offsetof implicit definition. #12

@gmh5225

Description

@gmh5225
typedef struct _APC_CALL_FRAME
{
    void* Routine;
    unsigned long SizeOfStackFrame;

} APC_CALL_FRAME, *PAPC_CALL_FRAME;
C_ASSERT(offsetof(APC_CALL_FRAME, SizeOfStackFrame) == 0x8);

The above code does not compile unless cstddef is included.
MSVC defines offsetof and does not require including cstddef.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions