The function declaration next to the definition looks good for me. Because it's preprocessor based mac only code it would say it's acceptable.