Well, those will brake. But in general it's possible. And I already do that
in Bluetooth code (it's been converted recently).
So
#if __GNUC__ <= 2 && __GNUC_MINOR__ < 95
#define __func__ __FUNCTION__
#endif
does the trick. All gcc's newer than 2.95 support __func__.
Bluetooth code compiles just fine with everything from:
ultrablue:/#sparc64-linux-gcc --version
egcs-2.92.11
to
champ:/usr/src/linux/include/net/bluetooth#gcc --version
gcc (GCC) 3.1
Max
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/