[x265] [PATCH] strncasecmp build issue
Shanmathi Paramanandam
shanmathi.paramanandam at multicorewareinc.com
Wed Jun 11 09:00:37 UTC 2025
>From 5365a4e311738ef5472deb3d234d99b2a5031b19 Mon Sep 17 00:00:00 2001
From: Shanmathi Paramanandam <shanmathi.paramanandam at multicorewareinc.com>
Date: Fri, 30 May 2025 10:30:22 +0530
Subject: [PATCH] fix strncasecmp build issue in Windows
---
source/input/y4m.cpp | 1 +
source/input/yuv.cpp | 1 +
2 files changed, 2 insertions(+)
diff --git a/source/input/y4m.cpp b/source/input/y4m.cpp
index 80f676f30..bce41e950 100644
--- a/source/input/y4m.cpp
+++ b/source/input/y4m.cpp
@@ -30,6 +30,7 @@
#define ENABLE_THREADING 1
#if _WIN32
+#define strncasecmp _strnicmp
#include <io.h>
#include <fcntl.h>
#if defined(_MSC_VER)
diff --git a/source/input/yuv.cpp b/source/input/yuv.cpp
index f0d6f6fbd..a0d8e002f 100644
--- a/source/input/yuv.cpp
+++ b/source/input/yuv.cpp
@@ -30,6 +30,7 @@
#define ENABLE_THREADING 1
#if _WIN32
+#define strncasecmp _strnicmp
#include <io.h>
#include <fcntl.h>
#if defined(_MSC_VER)
--
2.47.0.windows.1
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/x265-devel/attachments/20250611/7541f9b8/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-strncasecmp-build-issue.patch
Type: application/octet-stream
Size: 950 bytes
Desc: 0001-strncasecmp-build-issue.patch
URL: <http://mailman.videolan.org/pipermail/x265-devel/attachments/20250611/7541f9b8/attachment.obj>
More information about the x265-devel
mailing list