I'm not quite sure I understand the question, but yes, you can do it. Obviously, you need to tell the compiler that you are compiling on Windows (or the x operating system) at compile time. I saw a similar approach used for the bit size of things like integers.
azp74 source
share