#33015 closed defect (wontfix)
libsdl_image build failure on Tiger: error: ‘CGFloat’ undeclared
Reported by: | ryandesign (Ryan Carsten Schmidt) | Owned by: | jmroot (Joshua Root) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.0.3 |
Keywords: | tiger | Cc: | cooljeanius (Eric Gallager) |
Port: | libsdl_image |
Description
IMG_ImageIO.m: In function ‘Create_SDL_Surface_From_CGImage_RGB’: IMG_ImageIO.m:220: error: ‘CGFloat’ undeclared (first use in this function) IMG_ImageIO.m:220: error: (Each undeclared identifier is reported only once IMG_ImageIO.m:220: error: for each function it appears in.) IMG_ImageIO.m:220: error: parse error before ‘whitePoint’ IMG_ImageIO.m:230: error: ‘whitePoint’ undeclared (first use in this function) IMG_ImageIO.m:230: error: ‘blackPoint’ undeclared (first use in this function) IMG_ImageIO.m:231: error: ‘matrix’ undeclared (first use in this function) IMG_ImageIO.m:231: warning: passing argument 3 of ‘CGColorSpaceCreateCalibratedRGB’ from incompatible pointer type IMG_ImageIO.m: In function ‘Create_SDL_Surface_From_CGImage_Index’: IMG_ImageIO.m:310: warning: initialization makes pointer from integer without a cast IMG_ImageIO.m: In function ‘Create_SDL_Surface_From_CGImage’: IMG_ImageIO.m:354: error: ‘kCGColorSpaceModelIndexed’ undeclared (first use in this function) make: *** [IMG_ImageIO.lo] Error 1
I believe it should be possible to typedef
CGFloat
to float
.
Attachments (1)
Change History (4)
Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)
comment:1 Changed 13 years ago by jmroot (Joshua Root)
Resolution: | → wontfix |
---|---|
Status: | new → closed |
comment:2 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)
I emailed the developer, who said:
From: Sam Lantinga
Date: January 26, 2012 16:32:05 CST
To: Ryan Schmidt
Subject: Re: libsdl_image 1.2.12 compile failure on OS X 10.4 Tiger: 'CGFloat' undeclared
It's probably easiest to mark it 10.5 and higher. I saw a couple other errors in there that wouldn't be fixed just by switching to float.
So I added a pre-fetch block for darwin 8 in r89361 to error out early.
Note: See
TracTickets for help on using
tickets.
I'm not going to work on this. File a bug upstream if you like.