put pre-processor macro at beginning of file

also unified the macro style