[ 2 posts ] 
Author Message
 Post subject: [BUG] jconfig.h and SDL_config.h both define HAVE_STDLIB_H
PostPosted: Sun Jan 22, 2012 11:51 pm 
User avatar

Joined: Fri Jul 17, 2009 5:37 am
Posts: 1400
This generates a warning whenever you include jpeglib.h in a plugin.

This is in the 3.0.5 SDK

Code:
~ find /opt/PalmPDK/include -exec grep -Hn HAVE_STDLIB_H {} \;
/opt/PalmPDK/include/jconfig.h:12:#define HAVE_STDLIB_H
/opt/PalmPDK/include/SDL/SDL_config.h:67:#define HAVE_STDLIB_H 1
/opt/PalmPDK/include/SDL/SDL_stdinc.h:42:# if defined(HAVE_STDLIB_H)

_________________
Doug Reeder https://twitter.com/reeder29
https://twitter.com/hominidsoftware
Outline Tracker (1K): http://hominidsoftware.com/outlinetracker/index.html
Zap Photoshare: http://hominidsoftware.com/
PopupCalc: http://hominidsoftware.com/popupcalc/index.html


Top
 Profile  
 
 Post subject: Re: [BUG] jconfig.h and SDL_config.h both define HAVE_STDLIB_H
PostPosted: Mon Jan 23, 2012 7:54 am 
User avatar

Joined: Thu Jul 16, 2009 2:37 pm
Posts: 5177
Location: HP (Palm), Austin, TX (@unwiredben on Twitter)
Just "#undef HAVE_STDLIB_H" before including the second one to silence this.


Top
 Profile  
 
Display posts from previous:  Sort by  
   [ 2 posts ] 


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
cron