Files
qt6-migration-pipeline/external/tmsif/include/dds/ddsi/ddsi_feature_check.h
T
2026-10-23 16:13:31 +00:00

38 lines
1.1 KiB
C

// Copyright(c) 2006 to 2020 ZettaScale Technology and others
//
// This program and the accompanying materials are made available under the
// terms of the Eclipse Public License v. 2.0 which is available at
// http://www.eclipse.org/legal/epl-2.0, or the Eclipse Distribution License
// v. 1.0 which is available at
// http://www.eclipse.org/org/documents/edl-v10.php.
//
// SPDX-License-Identifier: EPL-2.0 OR BSD-3-Clause
/* Feature macros:
- SSM: support for source-specific multicast
requires: NETWORK_PARTIITONS
also requires platform support; SSM is silently disabled if the
platform doesn't support it
- IPV6: support for IPV6
requires: platform support (which itself is not part of DDSI)
- NETWORK_PARTITIONS: support for multiple network partitions
*/
#include "dds/features.h"
#ifdef DDSRT_HAVE_SSM
#ifndef DDS_HAS_NETWORK_PARTITIONS
#error "SSM requires NETWORK_PARTITIONS"
#endif
#include "dds/ddsrt/sockets.h"
#ifndef DDSRT_HAVE_SSM
#error "DDSRT_HAVE_SSM should be defined"
#elif ! DDSRT_HAVE_SSM
#undef DDSRT_HAVE_SSM
#endif
#endif