aboutsummaryrefslogtreecommitdiffstats
path: root/libSYS/include
diff options
context:
space:
mode:
Diffstat (limited to 'libSYS/include')
-rw-r--r--libSYS/include/machine_type.h13
-rw-r--r--libSYS/include/syslib_channelMapDescr.h6
2 files changed, 17 insertions, 2 deletions
diff --git a/libSYS/include/machine_type.h b/libSYS/include/machine_type.h
index b66d5ad..bd97669 100644
--- a/libSYS/include/machine_type.h
+++ b/libSYS/include/machine_type.h
@@ -382,13 +382,22 @@ it. Hence, a fully platform-independant way to use alignment is not supported.
/**************************************************
* Macros regarding static code analysis
**************************************************/
-#if defined(__clang__)
+#ifdef __cplusplus
+#if !defined(__has_cpp_attribute)
+#define __has_cpp_attribute(x) 0
+#endif
+#if defined(__clang__) && __has_cpp_attribute(clang::fallthrough)
#define FDK_FALLTHROUGH [[clang::fallthrough]]
-#elif defined(__GNUC__) && (__GNUC__ >= 7)
+#endif
+#endif
+
+#ifndef FDK_FALLTHROUGH
+#if defined(__GNUC__) && (__GNUC__ >= 7)
#define FDK_FALLTHROUGH __attribute__((fallthrough))
#else
#define FDK_FALLTHROUGH
#endif
+#endif
#ifdef _MSC_VER
/*
diff --git a/libSYS/include/syslib_channelMapDescr.h b/libSYS/include/syslib_channelMapDescr.h
index 1c5737a..375a24d 100644
--- a/libSYS/include/syslib_channelMapDescr.h
+++ b/libSYS/include/syslib_channelMapDescr.h
@@ -189,6 +189,12 @@ UCHAR FDK_chMapDescr_getMapValue(const FDK_channelMapDescr* const pMapDescr,
*/
int FDK_chMapDescr_isValid(const FDK_channelMapDescr* const pMapDescr);
+/**
+ * Extra variables for setting up Wg4 channel mapping.
+ */
+extern const CHANNEL_MAP_INFO FDK_mapInfoTabWg4[];
+extern const UINT FDK_mapInfoTabLenWg4;
+
#ifdef __cplusplus
}
#endif