I think maybe you should try #if defined(__SAM3X8E__) instead?
#if defined(__SAM3X8E__)
Regards,
Graham