Compile SDL on EVC4

I’ve finished this work.
And SDL worked perfect on my PocketPC and Emulator.

Though, there is still a problem I met during the process of compiling.

In the beginning, when I compile the VisualCE project in the SDL_1.2.6
source pack,
I always got Errors about the definition of “gl_data” .

The errors happened in the “Init_WGL_ARB_extensions” function
of “SDL_wingl.c”.
In fact, it should never be called until “HAVE_OPENGL” defined.

So, it was solved by put this funcion in an
"#ifdef HAVE_OPENGL"

"#endif"

Is there anyone else met the same problem?

I’ve finished this work.
And SDL worked perfect on my PocketPC and Emulator.

Though, there is still a problem I met during the process of compiling.

The errors happened in the “Init_WGL_ARB_extensions” function
of “SDL_wingl.c”.
In fact, it should never be called until “HAVE_OPENGL” defined.

That’s correct. Can you check SDL CVS to make sure it’s fixed?
http://www.libsdl.org/cvs.php

Thanks!
-Sam Lantinga, Software Engineer, Blizzard Entertainment