Re: Platform identify
- From: Deng Xiyue <manphiz gmail com>
- To: gtkmm-list gnome org
- Subject: Re: Platform identify
- Date: Wed, 25 Mar 2009 20:56:46 +0800
On Wed, Mar 25, 2009 at 08:26:49AM -0300, Fabrício Godoy wrote:
> Thank you, WIN32 and _WIN32 worked well.
> Which should I use? Where I find documentation?
>
I'm not quite familiar with WIN32, but both should work as expected.
Regards,
Deng Xiyue
> 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]