From 707ac2f69636eda7a31b9a17ab38b0e603e0d8e8 Mon Sep 17 00:00:00 2001 From: Felix F Xu <84662027+felixf4xu@users.noreply.github.com> Date: Wed, 5 Jun 2024 16:26:51 +0800 Subject: [PATCH] add mingw support (#370) Signed-off-by: U-CW01\uig08771 (cherry picked from commit 17f978d161cb4728eb8befe8f2d149d111e9c411) --- rmw/include/rmw/types.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rmw/include/rmw/types.h b/rmw/include/rmw/types.h index 6a59ae82..30c9b443 100644 --- a/rmw/include/rmw/types.h +++ b/rmw/include/rmw/types.h @@ -459,7 +459,7 @@ typedef enum RMW_PUBLIC_TYPE rmw_qos_durability_policy_e "RMW_QOS_POLICY_LIVELINESS_MANUAL_BY_NODE is deprecated. " \ "Use RMW_QOS_POLICY_LIVELINESS_MANUAL_BY_TOPIC if manually asserted liveliness is needed." -#ifndef _WIN32 +#ifndef _MSC_VER # define RMW_DECLARE_DEPRECATED(name, msg) name __attribute__((deprecated(msg))) #else # define RMW_DECLARE_DEPRECATED(name, msg) name __pragma(deprecated(name))