tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Adding fix for building GNU m4 on Debian



Has anybody got a clue why the version of the code below with an extra
pair of parentheses should cause a compilation error?

typedef struct {
        char some[4];
        char thing[5];
} foo_t;

int
main()
{
        if (sizeof (foo_t))
/*      if (sizeof ((foo_t)))   breaks with this line */
                return 0;

        return 0;
}


(that is what AC_CHECK_TYPES for posix_spawn_file_actions_t in m4/spawn_h.m4
essentially does)

Cheers,

Patrick


Home | Main Index | Thread Index | Old Index