remove #define from resources