Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-2-2
Commits
c7e0dfcc
Commit
c7e0dfcc
authored
May 03, 2014
by
Rafaël Carré
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
contrib: x265 1.0
parent
7a903c93
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
55 deletions
+2
-55
contrib/src/x265/0001-strtok_r-fix-detection-on-Windows.patch
...rib/src/x265/0001-strtok_r-fix-detection-on-Windows.patch
+0
-52
contrib/src/x265/SHA512SUMS
contrib/src/x265/SHA512SUMS
+1
-1
contrib/src/x265/rules.mak
contrib/src/x265/rules.mak
+1
-2
No files found.
contrib/src/x265/0001-strtok_r-fix-detection-on-Windows.patch
deleted
100644 → 0
View file @
7a903c93
From 37d507b3bb485589343f5d2408441fadc6e964e4 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Rafa=C3=ABl=20Carr=C3=A9?= <funman@videolan.org>
Date: Sat, 5 Apr 2014 11:24:55 +0200
Subject: [PATCH] strtok_r: fix detection on Windows
Make sure HAVE_STRTOK_R is always defined, to 0 if absent
Fix typo in #if
mingw-w64's pthread.h #defines strtok_r, make sure to undef it
before we use our own definition.
---
source/common/CMakeLists.txt | 3 +++
source/common/param.cpp | 3 ++-
2 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/source/common/CMakeLists.txt b/source/common/CMakeLists.txt
index 09029ba..63cdf09 100644
--- a/source/common/CMakeLists.txt
+++ b/source/common/CMakeLists.txt
@@ -130,6 +130,9 @@
if(ENABLE_ASSEMBLY)
endif(ENABLE_ASSEMBLY)
check_symbol_exists(strtok_r "string.h" HAVE_STRTOK_R)
+if(HAVE_STRTOK_R STREQUAL "")
+ set(HAVE_STRTOK_R "0")
+endif()
set_source_files_properties(param.cpp PROPERTIES COMPILE_FLAGS -DHAVE_STRTOK_R=${HAVE_STRTOK_R})
if(GCC AND GCC_HAS_NO_NARROWING)
diff --git a/source/common/param.cpp b/source/common/param.cpp
index 57e3388..ac19c7e 100644
--- a/source/common/param.cpp
+++ b/source/common/param.cpp
@@ -37,7 +37,7 @@
#define strcasecmp _stricmp
#endif
-#if !HAVE_STROTOK_R
+#if !HAVE_STRTOK_R
/*
* adapted from public domain strtok_r() by Charlie Gordon
*
@@ -49,6 +49,7 @@
* http://groups.google.com/group/comp.lang.c/msg/7c7b39328fefab9c
*/
+#undef strtok_r
char* strtok_r(
char *str,
const char *delim,
--
1.9.1
contrib/src/x265/SHA512SUMS
View file @
c7e0dfcc
18096e0fd826758f0a36209816deb950f7de9c2bdfe3c871bac3e262149d8bc55fdd82831d6bfc71b0e8d02e868a66f32bffc42fb5f18c7fba6a1296c455c8a5 x265-0.9
.tar.bz2
885389a4b039d7c75e28698109c3e2b4b7a83aec5b177940d91ad05a2061bf02233ac4efa01d42a7835df5d7fae6496d80c7baed51f02a40b9bd987a20c95539 x265-1.0
.tar.bz2
contrib/src/x265/rules.mak
View file @
c7e0dfcc
# x265
#X265_GITURL := https://github.com/videolan/x265
X265_VERSION
:=
0.9
X265_VERSION
:=
1.0
X265_SNAPURL
:=
https://bitbucket.org/multicoreware/x265/get/
$(X265_VERSION)
.tar.bz2
ifdef
BUILD_ENCODERS
...
...
@@ -27,7 +27,6 @@ x265: x265-$(X265_VERSION).tar.bz2 .sum-x265
mkdir
-p
$@
-
$(X265_VERSION)
$(BZCAT)
"
$<
"
|
(
cd
$@
-
$(X265_VERSION)
&&
tar
xv
--strip-components
=
1
)
$(
call
pkg_static,
"source/x265.pc.in"
)
$(APPLY)
$(SRC)
/x265/0001-strtok_r-fix-detection-on-Windows.patch
$(MOVE)
.x265
:
x265 toolchain.cmake
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment