Use '#if defined()' for OS-specific preprocessor checks.