Would it break anything if I add -DLINUX to externals/build/linux/makefile? There is already /DNT and -DMACOSX for Windows and MacOSX, and it would be handy to be able to differentiate Linux as well.
.hc
zen \ \ \[D[D[D[D
On Sun, 16 Nov 2003, Hans-Christoph Steiner wrote:
Would it break anything if I add -DLINUX to externals/build/linux/makefile? There is already /DNT and -DMACOSX for Windows and MacOSX, and it would be handy to be able to differentiate Linux as well.
Its not there because its redundant, you can already test for __linux__ linux __linux __gnu_linux__
but no, I think it wouldn't break anything. Where do you want to differenciate ?
Guenter
.hc
zen \ \ \[D[D[D[D
PD-dev mailing list PD-dev@iem.at http://iem.at/cgi-bin/mailman/listinfo/pd-dev
On Mon, 17 Nov 2003, guenter geiger wrote:
On Sun, 16 Nov 2003, Hans-Christoph Steiner wrote:
Would it break anything if I add -DLINUX to externals/build/linux/makefile? There is already /DNT and -DMACOSX for Windows and MacOSX, and it would be handy to be able to differentiate Linux as well.
Its not there because its redundant, you can already test for __linux__ linux __linux __gnu_linux__
but no, I think it wouldn't break anything. Where do you want to differenciate ?
Ah, that's makes a lot of sense. Where are these actually defined? Are there equivalents for MacOS X or Windows?
.hc
Guenter
.hc
zen \ \ \[D[D[D[D
PD-dev mailing list PD-dev@iem.at http://iem.at/cgi-bin/mailman/listinfo/pd-dev
PD-dev mailing list PD-dev@iem.at http://iem.at/cgi-bin/mailman/listinfo/pd-dev
zen \ \ \[D[D[D[D
Hans-Christoph Steiner wrote:
On Mon, 17 Nov 2003, guenter geiger wrote:
Its not there because its redundant, you can already test for __linux__ linux __linux __gnu_linux__
but no, I think it wouldn't break anything. Where do you want to differenciate ?
Ah, that's makes a lot of sense. Where are these actually defined?
automagically by the gcc
Are there equivalents for MacOS X or Windows?
.
on macOS, gcc will define __APPLE__
on windows, i have no access to a gcc. but i don't think, that vc6 will define something automatically (probably _WINDOWS ?)
mfg.as.dr IOhannes
-DMACOSX is also superfluous as there is a define __APPLE__ already in GCC. If you neeed to differentiate between GCC, CodeWarrior and XLC there are also defines for those.
cgc
Quoting guenter geiger geiger@xdv.org:
On Sun, 16 Nov 2003, Hans-Christoph Steiner wrote:
Would it break anything if I add -DLINUX to externals/build/linux/makefile? There is already /DNT and -DMACOSX
for
Windows and MacOSX, and it would be handy to be able to
differentiate
Linux as well.
Its not there because its redundant, you can already test for __linux__ linux __linux __gnu_linux__
but no, I think it wouldn't break anything. Where do you want to differenciate ?
Guenter
.hc
zen \ \ \[D[D[D[D
PD-dev mailing list PD-dev@iem.at http://iem.at/cgi-bin/mailman/listinfo/pd-dev
PD-dev mailing list PD-dev@iem.at http://iem.at/cgi-bin/mailman/listinfo/pd-dev