[vsipl++] patch: Add support for IPP on windows.

Mark Mitchell mark at codesourcery.com
Wed Sep 13 18:37:20 UTC 2006


Stefan Seefeld wrote:
> The attached patch makes the library compile with IPP on windows.
> OK to commit ?

Looks OK to me.

> Index: src/vsip/impl/config.hpp
> ===================================================================
> --- src/vsip/impl/config.hpp	(revision 149109)
> +++ src/vsip/impl/config.hpp	(working copy)
> @@ -29,6 +29,13 @@
>  # define VSIP_IMPL_PI 3.14159265358979323846
>  #endif
>  
> +#if defined(_WIN32) && VSIP_IMPL_HAVE_IPP
> +// IPP on Windows uses __stdcall for all functions.
> +# define VSIP_IMPL_IPP_CALL __stdcall
> +#else
> +# define VSIP_IMPL_IPP_CALL
> +#endif

Here, you probably don't really need the HAVE_IPP test, since the macro 
is only used with IPP.  It's not harmful; just seems redundant.

Thanks,

-- 
Mark Mitchell
CodeSourcery
mark at codesourcery.com
(650) 331-3385 x713



More information about the vsipl++ mailing list