I would add a comment here saying stuff like "the OS X FF API is very close to the Windows API, but they decided to change all names. Our implementation uses the Windows API names and redefines them for OS X".