fixed defined macros and getsize