How to define compilers define in Visual Studio:

=> Project properties

=> Compile

=> Settings

=> Compiler defines

How to use AhkSVN with Visual Studio:

=>Download and AHKSVN

To make available to Visual Studio view follow these

Tools | Option | Source Control | Plugin selection  | Current source control plugin