Re: [PATCH rdma-core] verbs: Fix declaration of C++ include file in C-block

Doug Ledford
2017-10-25T19:29:42Z

On Wed, 2017-10-25 at 12:23 +0300, Leon Romanovsky wrote:
> From: Leon Romanovsky <leonro-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
>
> The include of limits.h in case of C++ application throws the
> following
> error during the compilation.
>
> /usr/include/c++/4.8.2/limits:303:3: error: template with C linkage
> template<typename _Tp>
> ^
>
> The reason to such failure is the location of limits.c, it is
> supposed
> to be included outside of C-block, so let's move it to avoid the
> error.
>
> Fixes: 6a74285158a1 ("verbs: Fix C++ compilation break")
> Signed-off-by: Leon Romanovsky <leonro-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>

Thanks, applied.

--
Doug Ledford <dledford-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
GPG KeyID: B826A3330E572FDD
Key fingerprint = AE6B 1BDA 122B 23B4 265B 1274 B826 A333 0E57 2FDD

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html