[Qt-creator] Error compiling Creator on OpenBSD 4.4

Oswald Buddenhagen oswald.buddenhagen at trolltech.com
Fri Mar 13 10:31:28 CET 2009


On Fri, Mar 13, 2009 at 09:27:24AM +0100, Eike Ziller wrote:
> Note that you can't just use Q_OS_UNIX instead of LINUX, because MAC
> is UNIX, but mostly behaves differently than other unixes.
> 
you don't seem to fully appreciate *how* many unixes are out there. :D

usually, the correct solution is either
  #if defined(Q_OS_UNIX) && !defined(Q_OS_MAC)
or if this is a "switch case" anyway, to properly order things:
  #ifdef Q_OS_WIN
  #elif defined(Q_OS_MAC)
  #else // other unix
  #endif

of course, there will be cases where particular non-mac unixes need to
be named explicitly, but these will be rare.

incidentally, macosx is closest to freebsd ...



More information about the Qt-creator-old mailing list