IMG_Load stupid problem solved

Geez!

I have started my debugger, jumping to IMG_isPNG() and see that the function
has no body - and I cried What the f*** is going on here?

And yes, the function body was really empty, because in each these IMG_LoadXXX
is testing macro condition

#ifdef LOAD_PNG …

which is however not defined. I assume those macros are defined in project file
(which is missing for VisualCE)

So I had to define those macros and it works fine now however I wonder why
there is this macro condition.

I assume this crazy macro test is due to spare some binary code (and memory) if
targeted image is not used in our program.

[…]

#ifdef LOAD_PNG …

which is however not defined. I assume those macros are defined in
project file (which is missing for VisualCE)
[…]

These are normally defined by the autotools build scripts, and are
based on what’s available when the library is built, and
configuration. For example, if you don’t have libpng, or don’t need
it for some project, SDL_image can be compiled without it.

//David Olofson - Programmer, Composer, Open Source Advocate

.------- http://olofson.net - Games, SDL examples -------.
| http://zeespace.net - 2.5D rendering engine |
| http://audiality.org - Music/audio engine |
| http://eel.olofson.net - Real time scripting |
’-- http://www.reologica.se - Rheology instrumentation --'On Friday 26 December 2008, Techi wrote: