Including platform-dependent functions

I want to use movewindow functions from win32 api and from x windows.
So, how can i include source code with these functions
to my main SDL source?

Thanks in advance,

Blazej

I think you can use some #ifdef statement in your code.

#ifdef win32
do win32 specific operations
#else
do linux things
#endif

This suppose that you compile for linux and windows only, you need finer
test for more platform.

You could also make a separate file for each platform. I think SDL is done
in this way.

Hope that helps

Julien> ----- Original Message -----

From: blase@agatka.math.uni.wroc.pl (Blazej Lyjak)
To:
Sent: Wednesday, May 28, 2003 12:21 PM
Subject: [SDL] including platform-dependent functions

I want to use movewindow functions from win32 api and from x windows.
So, how can i include source code with these functions
to my main SDL source?

Thanks in advance,

Blazej


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl