Add extra check for private modules
// SPDX-License-Identifier: Apache-2.0
//
#define EVTSDK_VERSION_PREFIX "EVT"
-#if defined(_WIN32) /* && defined(HAVE_PRIVATE_MODULES) */
-#define HAVE_MAT_UTC
+#if defined(_WIN32)
+#if defined __has_include
+# if __has_include ("modules/azmon/AITelemetrySystem.hpp")
# define HAVE_MAT_AI
# endif
+# if __has_include ("modules/utc/UtcTelemetrySystem.hpp")
+# define HAVE_MAT_UTC
+# endif
+#endif
+#endif
#if defined(HAVE_PRIVATE_MODULES)
#define HAVE_MAT_EXP
#define HAVE_MAT_FIFOSTORAGE
