问题
e.g. a mapping for
Mac OS 10.6.3 aka Snow Leopard => __APPLE__ && __LP64__
?
Windows 7, Windows XP => __WIN32__
Linux => __LINUX__
回答1:
Here you go: http://predef.sourceforge.net/
来源:https://stackoverflow.com/questions/2990172/is-there-a-list-of-preprocessor-defines-for-various-operating-systems-and-versi