Re: Platform identify
- From: Deng Xiyue <manphiz gmail com>
- To: gtkmm-list gnome org
- Subject: Re: Platform identify
- Date: Wed, 25 Mar 2009 10:00:18 +0800
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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]