Your code should look like

    #include <stdio.h>

    #ifdef __TINYC__
    # undef __attribute__
    #endif

    struct MyS {
        char a;
        short b;
    } __attribute__((packed));

    int main(void)
    {
        printf("sizeof(MyS): %lu\n", sizeof(struct MyS));

        return 0;
    }

in order to work.

I was bitten by attributes too and learned my lesson lol.

_______________________________________________
Tinycc-devel mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/tinycc-devel

Reply via email to