• 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: gcc 4.2 generates error that was OK before
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: gcc 4.2 generates error that was OK before


  • Subject: Re: gcc 4.2 generates error that was OK before
  • From: Alastair Houghton <email@hidden>
  • Date: Tue, 22 Sep 2009 21:26:56 +0100

On 22 Sep 2009, at 21:17, Steve Mills wrote:

On the Mac, those are both typedef'd to void. On Windows, they're typedef'd to int and size_t. Maybe it's just the "static" that's making it puke? No, getting rid of that didn't help. Still, I don't see the need for it in the *declaration* of hsGGlyphCacheHandler. Changing the 2 typedefs below to #defines made it work.

I wonder if sticking "typename" in explicitly to tell the compiler that you're talking about types helps? Something like:


  #ifndef __cplusplus
  #define typename
  #endif

static typename hsNewHandler_ReturnType hsGGlyphCacheHandler (typename hsNewHandler_ParamType);

I'm not sure it's *supposed* to be necessary in this context, but I'm equally not sure it isn't and as I don't have the standard handy all I can suggest is that you try it and see.

Kind regards,

Alastair.

--
http://alastairs-place.net



_______________________________________________
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: gcc 4.2 generates error that was OK before
      • From: Steve Mills <email@hidden>
References: 
 >gcc 4.2 generates error that was OK before (From: Steve Mills <email@hidden>)
 >Re: gcc 4.2 generates error that was OK before (From: Alastair Houghton <email@hidden>)
 >Re: gcc 4.2 generates error that was OK before (From: Steve Mills <email@hidden>)
 >Re: gcc 4.2 generates error that was OK before (From: Jeffrey Schmidt <email@hidden>)
 >Re: gcc 4.2 generates error that was OK before (From: Steve Mills <email@hidden>)

  • Prev by Date: Re: gcc 4.2 generates error that was OK before
  • Next by Date: Re: gcc 4.2 generates error that was OK before
  • Previous by thread: Re: gcc 4.2 generates error that was OK before
  • Next by thread: Re: gcc 4.2 generates error that was OK before
  • Index(es):
    • Date
    • Thread