stdlib: Fix macro expansion producing 'defined' has undefined behavior