If you use gnu autotools it's really simple. Just put something like this
into configure.ac

AC_CHECK_HEADERS(windows.h)

And then use

#ifdef HAVE_WINDOWS_H
do this
#else
do that
#endif



2013/10/16 Incongruous <incongru...@outlook.com>

>   Thanks everyone.
>
>  *From:* Incongruous <incongru...@outlook.com>
> *Sent:* Tuesday, October 15, 2013 6:06 AM
> *To:* MinGW-64 Mailinglist <mingw-w64-public@lists.sourceforge.net>
> *Subject:* [Mingw-w64-public] to test for MinGW64
>
>   I would like to test for MinGW64 to include or exclude some code;
> something like:
> #ifdef MinGW64
> doThis();
> #endif
> #ifdef __MSV__
> doSomthingElse
> #endif
>
> is this possible?
>
> tia
>
>
>
> ------------------------------
>
> ------------------------------------------------------------------------------
> October Webinars: Code for Performance
> Free Intel webinars can help you accelerate application performance.
> Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most
> from
> the latest Intel processors and coprocessors. See abstracts and register >
> http://pubads.g.doubleclick.net/gampad/clk?id=60135031&iu=/4140/ostg.clktrk
>
> ------------------------------
> _______________________________________________
> Mingw-w64-public mailing list
> Mingw-w64-public@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
>
>
>
> ------------------------------------------------------------------------------
> October Webinars: Code for Performance
> Free Intel webinars can help you accelerate application performance.
> Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most
> from
> the latest Intel processors and coprocessors. See abstracts and register >
> http://pubads.g.doubleclick.net/gampad/clk?id=60135031&iu=/4140/ostg.clktrk
> _______________________________________________
> Mingw-w64-public mailing list
> Mingw-w64-public@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
>
>


-- 
------------------------------------------------------------------------------------
Dr. Edscott Wilson Garcia
Applied Mathematics and Computing
Mexican Petroleum Institute
------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60135031&iu=/4140/ostg.clktrk
_______________________________________________
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to