C++ (Qt)// ### Qt 5; remove the ifdef and just have the same order on all platforms.#if defined(Q_OS_MAC) int yp; int xp;#else int xp; int yp;#endif
C++ (Qt)int yp, xp;
C++ (Qt)// ### Qt 5; remove the ifdef and just have the same order on all platforms.
#ifdef Q_WS_MAC for (int i=0; i<count; i+=2) { fpoints[i] = ((int *) points)[i+1]; fpoints[i+1] = ((int *) points)[i]; } #else for (int i=0; i<count; ++i) fpoints[i] = ((int *) points)[i]; #endif
C++ (Qt)struct Test{ int a; int b; #ifdef Q_WS_MAC int macC; #else int notMacC; #endif};}
C++ (Qt){#ifdef Q_WS_MAC macC = a + b;#else notMacC = a + b;#endif}