It is compatible with both, however there are special procedures you'll have to undertake to make sure that it is readable by both at the same time, if that's what you want to do.
You'll have to format it as FAT or FAT32 on the Mac.
If you do the format on Windows, you won't be able to be sure the Mac will work with it.