moved } to outside #ifdef