Skip to content

struct in a struct with __attribute__((packed)) #42

@jackrosenthal

Description

@jackrosenthal

Support for either of these cases:

struct foo_t {
    struct __attribute__((packed)) {
        int a;
        char b;
    };
};
struct foo_t {
    struct {
        int a;
        char b;
    } __attribute__((packed));
};

I can work on an patch, but just posting an issue so it's documented.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions