Wire Library for WiFi Rev2 compatibility issues

I have a WiFi Rev2 and I want to use with RTC DS1307 so I read on this site the library I use on arduino uno is not compatible with ATmega4809. I need a library.