{"content":{"id":705,"title":"'Build Your Own Lisp' Solutions: 4.9","body":"\u003cp\u003e\u003cb\u003eQ:\u003c/b\u003e If \u003ci\u003e_WIN32\u003c/i\u003e is defined on windows, what is defined for Linux or Mac?\u003c/p\u003e\r\n\u003cp\u003e\u003cb\u003eA:\u003c/b\u003e \u003ci\u003e__linux__\u003c/i\u003e, and \u003ci\u003e__APPLE__\u003c/i\u003e, not to mention \u003ci\u003e__ANDROID__\u003c/i\u003e (which is a type of \u003ci\u003e__linux__\u003c/i\u003e, so something like \u003ci\u003e__linux__ \u0026\u0026 !__ANDROID__\u003c/i\u003e is possible).\u003c/p\u003e\r\n\u003cstyle\u003e\r\ni { background: white; font-style: normal; margin-left: 3px; margin-right: 3px }\r\n\u003c/style\u003e","publication_date":"2019-06-08T00:00:00.000Z","created_at":"2019-05-09T21:47:37.000Z","updated_at":"2020-07-06T03:21:32.000Z","user_id":1,"rating":null},"tags":"\u003ca class=\"changeable-title\" href=\"/q?tag=c\"\u003ec\u003c/a\u003e \u003ca class=\"changeable-title\" href=\"/q?tag=lisp\"\u003elisp\u003c/a\u003e \u003ca class=\"changeable-title\" href=\"/q?tag=build_your_own_lisp\"\u003ebuild_your_own_lisp\u003c/a\u003e \u003ca class=\"changeable-title\" href=\"/q?tag=answers\"\u003eanswers\u003c/a\u003e \u003ca class=\"changeable-title\" href=\"/q?tag=programming\"\u003eprogramming\u003c/a\u003e"}

'Build Your Own Lisp' Solutions: 4.9

Q: If _WIN32 is defined on windows, what is defined for Linux or Mac?

A: __linux__, and __APPLE__, not to mention __ANDROID__ (which is a type of __linux__, so something like __linux__ && !__ANDROID__ is possible).