Re: ifdef __linux__ / gtk issue; how to list defined symbols for cmake?

2019-06-28 Thread Gary Aitken
Thanks a boatload for the detailed explanation. Gary ___ freebsd-ports@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"

Re: ifdef __linux__ / gtk issue; how to list defined symbols for cmake?

2019-06-26 Thread Jan Beich
Gary Aitken writes: > 1. Is there an easy way to get a list of all the __*__ symbols? # Works for GCC, Clang and some arcane compilers $ cc -dM -E - Where / how are these set up? Predefined macros are set by the compiler. Some are architecture-specific, some are OS-specific, some depend on

ifdef __linux__ / gtk issue; how to list defined symbols for cmake?

2019-06-24 Thread Gary Aitken
I'm working on porting the prusa slicer. It contains a boatload of things like #if defined _WIN32 ... #elif defined(__linux__) ... #elif defined __APPLE__ ... occasionally there is a #if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__bsdi__