Re: where is #define __linux__

2001-01-09 Thread Aaron Brashears
On Tue, Jan 09, 2001 at 02:22:45PM +0100, Marcus Brinkmann wrote: > Just as a side note, think twice (or even thrice) before using that symbols. > Is the code really linux specific? For example, a Linux kernel feature > certainly is, but many other things aren't. Often it is more appropriate > to c

Re: where is #define __linux__

2001-01-09 Thread Martijn van Oosterhout
D-Man wrote: > > On Mon, Jan 08, 2001 at 11:05:54PM -0800, Aaron Brashears wrote: > | I'm doing some code which is intended to work on linux and sunos. I > | was poking through the header files in /usr/include on my debian box > | and found a line in g++-3/stl_config.h which specified: > | > | #if

Re: where is #define __linux__

2001-01-09 Thread Marcus Brinkmann
On Mon, Jan 08, 2001 at 11:05:54PM -0800, Aaron Brashears wrote: > I'm doing some code which is intended to work on linux and sunos. I > was poking through the header files in /usr/include on my debian box > and found a line in g++-3/stl_config.h which specified: > > #if defined(__linux__) > > af

Re: where is #define __linux__

2001-01-09 Thread phil
On Mon, Jan 08, 2001 at 11:05:54PM -0800, Aaron Brashears wrote: > > While on the topic, is there a > magic preprocessor definition that lets me know if I'm on > sunos/solaris? yes indeedy. multiple. there is __sun__ to detect solarisORsunos, and __svr4__ to detect solaris specifically, I beli

Re: where is #define __linux__

2001-01-09 Thread D-Man
On Mon, Jan 08, 2001 at 11:05:54PM -0800, Aaron Brashears wrote: | I'm doing some code which is intended to work on linux and sunos. I | was poking through the header files in /usr/include on my debian box | and found a line in g++-3/stl_config.h which specified: | | #if defined(__linux__) | |

where is #define __linux__

2001-01-09 Thread Aaron Brashears
I'm doing some code which is intended to work on linux and sunos. I was poking through the header files in /usr/include on my debian box and found a line in g++-3/stl_config.h which specified: #if defined(__linux__) after a quick test, I found out this is true on linux, and not true on solaris w