If you're after a compile-time failure then just do something like this
{
char s1[+sizeof(time_t) - sizeof(LONG) + 1];
char s2[-sizeof(time_t) + sizeof(LONG) + 1];
}
Which will fail to build if the sizes differ.
You could put that into a macro, but the error would be rather cryptic.