I installed this drive on a PC but I would guess that it would also work on a Mac. You always have to format a new drive, so that should take care of any incompatibility. In the past I have used WD drives as backups with Mac's before without problems.
Typically, internal hard drives like this would NOT fit into a Mac because of the size though. You need to be very careful and check all of the dimensions and compatibilities first before purchasing an internal drive. I would go with a drive designed specifically and labelled for the particular Mac that you have rather than try to make "something" else just work. It usually doesn't turn out well.