• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: limits.h
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: limits.h


  • Subject: Re: limits.h
  • From: Markian Hlynka <email@hidden>
  • Date: Wed, 2 Mar 2005 15:54:19 -0700

yah. take a look at the top of your types.h file. you'll probably find:
#include <machine/limits.h>
#include <sys/syslimits.h>

machine/limits.h includes ppc/limits.h which defines CHAR_BIT 8

This isn't much help since machine/limits.h then overrides it.... so now I'm confused too!

The file machine/limits.h is just a link to /usr/include/gcc/darwin/3.3/machine/limits.h

Odd...


On Mar 2, 2005, at 15:21, Steve Mills wrote:

This probably isn't the best list to ask this question in, but I don't want to join yet another one just for one question.

I was running into problems compiling a 3rd party CodeWarrior project that we use. The problem was that it couldn't find __CHAR_BIT__. Another engineer says it's coming from /usr/include/gcc/darwin/3.3/machine/limits.h. I looked at my version of that file and the only reference to __CHAR_BIT__ was:

#define CHAR_BIT __CHAR_BIT__

His version of it has this above that:

#ifndef __CHAR_BIT__
#define __CHAR_BIT__ 8
#endif

Can anyone tell me why our files might be different when they're both in the 3.3 directory? Was there an update that was a small change in 3.3 that didn't actually change the version number (like to 3.4)?

Steve Mills
Drummer, Mac geek
http://sjmills5.home.mchsi.com/

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
email@hidden


This email sent to email@hidden

_______________________________________________ Do not post admin requests to the list. They will be ignored. Xcode-users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: limits.h
      • From: Justin Walker <email@hidden>
References: 
 >limits.h (From: Steve Mills <email@hidden>)

  • Prev by Date: Re: limits.h
  • Next by Date: Re: limits.h
  • Previous by thread: Re: limits.h
  • Next by thread: Re: limits.h
  • Index(es):
    • Date
    • Thread