I want to compile this code:
#include <stdalign.h>
#include <stdio.h>
#include <stddef.h>
int main ( int argc , char ** argv )
{
printf ("%zu\n", alignof ( max_align_t ));
return 0;
}
But the compiler says that:
error: ‘max_align_t’ undeclared".
stddef.h
turned on and everything should be okay, right?
PS I already tried to compile this code under gcc4.8 and gcc4.9, but I have an error as described.
source
share