Re: Platform identify



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

Thank you.

2009/3/24 Deng Xiyue <manphiz gmail com>
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
gtkmm-list gnome org
http://mail.gnome.org/mailman/listinfo/gtkmm-list



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]