put pre-processor macro at beginning of file

also unified the macro style; addition to #333