Added defined chech before define