Do not define __attribute__ in header files.

Fix Savannah bug #35313.