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

Welcome to IWETHEY!

New Is this on Linux?
Make system do a uname -a.
-drl
New what he said
will work for cash and other incentives [link|http://home.tampabay.rr.com/boxley/resume/Resume.html|skill set]

You think that you can trust the government to look after your rights? ask an Indian
New I wasn't clear enough.
I need this to happen at compile time. Currently, the build system generates -D entries based on things like uname. I would like to determine OS/platform (endian stuff, really, but I can get that from endian.h on unix platforms) based on built-in #defines produced by the compiler or present in system .h files. I don't want to have to detect the OS in the build system.
Regards,

-scott anderson

"Welcome to Rivendell, Mr. Anderson..."
New Gotta be a #pragma right?
You basically tell the compiler "do this if this is the environment..."
-drl
New #define
Regards,

-scott anderson

"Welcome to Rivendell, Mr. Anderson..."
New /usr/include/machine/cpu.h (like that?)
will work for cash and other incentives [link|http://home.tampabay.rr.com/boxley/resume/Resume.html|skill set]

You think that you can trust the government to look after your rights? ask an Indian
New Doesn't exist on this box.
Or were you just giving an example of what you thought I was looking for?
Regards,

-scott anderson

"Welcome to Rivendell, Mr. Anderson..."
New osx has 3 entries
/usr/include/machine/cpu.h
* @APPLE_LICENSE_HEADER_END@
*/

#ifndef _BSD_MACHINE_CPU_H_
#define _BSD_MACHINE_CPU_H_


#if defined (__ppc__)
#include "ppc/cpu.h"
#elif defined (__i386__)
#include "i386/cpu.h"
#else
#error architecture not supported
#endif
#endif /* _BSD_MACHINE_CPU_H_ */


as you can see it is a stub so you might be able to write one out and add it to the build.
/usr/include/i386/cpu.h
* @APPLE_LICENSE_HEADER_END@
*/
/*
* HISTORY
*
*/

#ifndef _BSD_I386_CPU_H_
#define _BSD_I386_CPU_H_

#include <sys/appleapiopts.h>

#ifdef __APPLE_API_OBSOLETE
#define cpu_number() (0)
#endif /* __APPLE_API_OBSOLETE */

#endif /* _BSD_I386_CPU_H_ */

hope anything helps, you might want to write one
thanx,
bill
will work for cash and other incentives [link|http://home.tampabay.rr.com/boxley/resume/Resume.html|skill set]

You think that you can trust the government to look after your rights? ask an Indian
New Heh. No /usr/include/i386 either.
But yes, that's the sort of thing I'm looking for. Thanks.
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)

Conical spray... with sesame seeds!
223 ms