Using #ifdefs, or your language's equivalent, is a common occurrence in code, not only when writing cross-platform code. #ifdefs (or #if in C#, Swift and Iodine and {$IF} in Oxygene), let you conditionally compile different parts of your project — for example to account for APIs not available on all ...
More...