To process platform-specific code between Mac and Windows, WIN32 and APPLE are terms of use, right?
So this code will look like this:
#ifdef _WIN32 // Windows code #endif #ifdef __APPLE__ // Mac code #endif
What about Linux?
How can I do this for all three? to the right
It looks like:
#ifdef __linux__ // Linux code #endif
Since you will have either one of these three given at a time, this should be good for all three.
List of definitions.
Source: https://habr.com/ru/post/1415742/More articles:How to correctly define a function of type "any" - haskellHow to make the sound output of an application pass through a Bluetooth headset - actionscript-3A C # .Net form will not be drawn if the mouse is on an image that has a tooltip - c #lxml - using regex in findall () to search tags by attribute values - pythonCombine each element with any other element of the object (cross-product) - rcross-product data frames - rJava XSD installer cannot find element declaration - javaWhy is the call to the parent constructor called? - genericsAndroid sets height of custom title bar - androidIs there a list of preprocessors for various operating systems (and versions)? - c ++All Articles