IWETHEY v. 0.3.0 | TODO
1,095 registered users | 0 active users | 1 LpH | Statistics
Login | Create New User
IWETHEY Banner

Welcome to IWETHEY!

New So what you're really wanting is...
...to know if the compiler itself is autodetecting the environment and whether that detection is available in the conditional compilation?
New s/wanting/using
Here's what I came up with, which seems to work fine:

[link|http://z.iwethey.org/forums/render/content/show?contentid=73714|http://z.iwethey.org...w?contentid=73714]
Regards,

-scott anderson

"Welcome to Rivendell, Mr. Anderson..."
     Determining platform type/OS in gcc via #defines - (admin) - (25)
         Maybe Mozilla source would help... - (Another Scott) - (1)
             Yes, this is the sort of thing I was looking for: - (admin)
         Is this on Linux? - (deSitter) - (8)
             what he said -NT - (boxley)
             I wasn't clear enough. - (admin) - (6)
                 Gotta be a #pragma right? - (deSitter) - (1)
                     #define -NT - (admin)
                 /usr/include/machine/cpu.h (like that?) -NT - (boxley) - (3)
                     Doesn't exist on this box. - (admin) - (2)
                         osx has 3 entries - (boxley) - (1)
                             Heh. No /usr/include/i386 either. - (admin)
         I don't really have an answer handy... - (ChrisR) - (13)
             Compile time, without passing -D switches. -NT - (admin) - (12)
                 If memory serves me correct... - (ChrisR) - (11)
                     Right. But I don't want to pass -D switches. :-) - (admin) - (10)
                         Could autoconf help? - (static) - (9)
                             We have our own build system; autoconf not a part of it -NT - (admin) - (8)
                                 Autoconf could still be useful - (neelk) - (7)
                                     Autoconf does so at runtime. - (admin) - (6)
                                         Are we talking about "configure" script? - (Arkadiy) - (5)
                                             You misunderstand me. - (admin) - (4)
                                                 One man's compile time... - (ChrisR) - (3)
                                                     I already do that; I don't want to. :-) - (admin) - (2)
                                                         So what you're really wanting is... - (ChrisR) - (1)
                                                             s/wanting/using - (admin)

Kilroy was here.
57 ms