put pre-processor macro at beginning of file

also unified the macro style
Merge pull request #378 from DivineDominion/patch-1

put pre-processor macro at beginning of file