From 9a0866a51cab20ca83c9fbf2cfbeb46590de39ae Mon Sep 17 00:00:00 2001 From: Rodrigo Date: Thu, 21 Sep 2023 15:16:34 -0400 Subject: [PATCH] HPCC-30324 Addresses Win build issue - Removes non-windows available strcasecmp call Signed-off-by: Rodrigo Pastrana --- system/jlib/jtrace.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/system/jlib/jtrace.cpp b/system/jlib/jtrace.cpp index 55fe2056783..278c6a117cd 100644 --- a/system/jlib/jtrace.cpp +++ b/system/jlib/jtrace.cpp @@ -623,12 +623,12 @@ class CTraceManager : implements ITraceManager, public CInterface if (!exportType.isEmpty()) { - if (strcasecmp(exportType.str(), "OS")==0) //To stdout/err + if (stricmp(exportType.str(), "OS")==0) //To stdout/err { exporter = opentelemetry::exporter::trace::OStreamSpanExporterFactory::Create(); DBGLOG("Tracing to stdout/err..."); } - else if (strcasecmp(exportType.str(), "OTLP")==0) + else if (stricmp(exportType.str(), "OTLP")==0) { namespace otlp = opentelemetry::exporter::otlp; @@ -649,9 +649,9 @@ class CTraceManager : implements ITraceManager, public CInterface exporter = otlp::OtlpGrpcExporterFactory::Create(opts); DBGLOG("Tracing to OTLP (%s)", endPoint.str()); } - else if (strcasecmp(exportType.str(), "Prometheus")==0) + else if (stricmp(exportType.str(), "Prometheus")==0) DBGLOG("Tracing to Prometheus currently not supported"); - else if (strcasecmp(exportType.str(), "HPCC")==0) + else if (stricmp(exportType.str(), "HPCC")==0) DBGLOG("Tracing to HPCC JLog currently not supported"); } else @@ -841,4 +841,4 @@ void initTraceManager(const char * componentName, IPropertyTree * config) ITraceManager & queryTraceManager() { return *theTraceManager.query([] () { return new CTraceManager; }); //throws if not initialized -} \ No newline at end of file +}