Thank you, WIN32 and _WIN32 worked well.
Which should I use? Where I find documentation?

Thank you.

2009/3/24 Deng Xiyue <[email protected]>

> On Tue, Mar 24, 2009 at 03:14:56PM -0300, Fabrício Godoy wrote:
> > How can I identify the platform like this:
> >
> > #if PLATFORM_WINDOWS
> >  #include <specificlibrary.h>
> > #else if PLATFORM_LINUX
> >  #include <otherlibrary.h>
> > #endif
> >
> > I tried something with autotools without success.
> >
> > Thank you.
>
> Windows defines macros WIN32, _WIN32 and such. For POSIX, you might find
> this page[1] helpful.
>
> [1] http://www.gnu.org/software/hello/manual/libc/Feature-Test-Macros.html
>
> Regards,
> Deng Xiyue
> _______________________________________________
> gtkmm-list mailing list
> [email protected]
> http://mail.gnome.org/mailman/listinfo/gtkmm-list
>
_______________________________________________
gtkmm-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/gtkmm-list

Reply via email to