Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
04d2e753
Commit
04d2e753
authored
Nov 22, 2006
by
Rafaël Carré
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add a check to lrintf for systems that define it in libm
parent
c2725e1e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
36 additions
and
17 deletions
+36
-17
extras/contrib/src/Makefile
extras/contrib/src/Makefile
+2
-2
extras/contrib/src/Patches/faad2.patch
extras/contrib/src/Patches/faad2.patch
+34
-15
No files found.
extras/contrib/src/Makefile
View file @
04d2e753
...
@@ -801,7 +801,7 @@ DISTCLEAN_PKG += speex-$(SPEEX_VERSION).tar.gz
...
@@ -801,7 +801,7 @@ DISTCLEAN_PKG += speex-$(SPEEX_VERSION).tar.gz
# @echo "*** Please type return here : ***"
# @echo "*** Please type return here : ***"
# cvs -d $(FAAD2_CVSROOT) login
# cvs -d $(FAAD2_CVSROOT) login
# cvs -d $(FAAD2_CVSROOT) co faad2
# cvs -d $(FAAD2_CVSROOT) co faad2
# (cd $@; patch -p
0
< ../Patches/faad2.patch)
# (cd $@; patch -p
1
< ../Patches/faad2.patch)
# (cd $@; sh ./bootstrap)
# (cd $@; sh ./bootstrap)
faad2-$(FAAD2_VERSION).tar.bz2
:
faad2-$(FAAD2_VERSION).tar.bz2
:
...
@@ -809,7 +809,7 @@ faad2-$(FAAD2_VERSION).tar.bz2:
...
@@ -809,7 +809,7 @@ faad2-$(FAAD2_VERSION).tar.bz2:
faad
:
faad2-$(FAAD2_VERSION).tar.bz2
faad
:
faad2-$(FAAD2_VERSION).tar.bz2
$(EXTRACT_BZ2)
$(EXTRACT_BZ2)
(
cd
$@
;
patch
-p
0
< ../Patches/faad2.patch
&&
./bootstrap
)
(
cd
$@
;
patch
-p
1
< ../Patches/faad2.patch
&&
./bootstrap
)
.faad
:
faad
.faad
:
faad
(
cd
$<
&&
$(HOSTCC)
./configure
$(HOSTCONF)
--prefix
=
$(PREFIX)
CFLAGS
=
"-O3"
&&
sed
-i
.orig
"s/shrext_cmds/shrext/g"
libtool
&&
make
-C
libfaad
&&
make
-C
libfaad
install
)
(
cd
$<
&&
$(HOSTCC)
./configure
$(HOSTCONF)
--prefix
=
$(PREFIX)
CFLAGS
=
"-O3"
&&
sed
-i
.orig
"s/shrext_cmds/shrext/g"
libtool
&&
make
-C
libfaad
&&
make
-C
libfaad
install
)
...
...
extras/contrib/src/Patches/faad2.patch
View file @
04d2e753
--- libfaad/bits.h 2005-11-22 23:41:28.000000000 +0000
diff -ru a/configure.in b/configure.in
+++ libfaad/bits.h 2005-11-22 23:40:15.000000000 +0000
--- a/configure.in Wed Nov 22 23:42:56 2006
+++ b/configure.in Wed Nov 22 23:30:04 2006
@@ -76,6 +76,8 @@
fi
])
+dnl check for lrintf()
+AC_SEARCH_LIBS(lrintf,m,[AC_DEFINE([HAVE_LRINTF], [1], [Define if lrintf exists])], [])
MY_CHECK_TYPEDEF_FROM_INCLUDE([float32_t temp],
[#include <sys/types.h>,
diff -ru a/libfaad/bits.h b/libfaad/bits.h
--- a/libfaad/bits.h Wed Nov 22 23:43:10 2006
+++ b/libfaad/bits.h Wed Nov 22 23:44:20 2006
@@ -58,7 +58,7 @@
@@ -58,7 +58,7 @@
#if defined (_WIN32) && !defined(_WIN32_WCE) && !defined(__MINGW32__)
#if defined (_WIN32) && !defined(_WIN32_WCE) && !defined(__MINGW32__)
...
@@ -9,14 +22,10 @@
...
@@ -9,14 +22,10 @@
#define BSWAP(a) __asm__ ( "bswapl %0\n" : "=r" (a) : "0" (a) )
#define BSWAP(a) __asm__ ( "bswapl %0\n" : "=r" (a) : "0" (a) )
#else
#else
#define BSWAP(a) \
#define BSWAP(a) \
Index: libfaad/common.h
diff -ru a/libfaad/common.h b/libfaad/common.h
===================================================================
--- a/libfaad/common.h Wed Nov 22 23:43:04 2006
RCS file: /cvsroot/faac/faad2/libfaad/common.h,v
+++ b/libfaad/common.h Wed Nov 22 23:45:04 2006
retrieving revision 1.66
@@ -147,7 +147,7 @@
diff -u -r1.66 common.h
--- libfaad/common.h 1 Feb 2005 13:23:35 -0000 1.66
+++ libfaad/common.h 22 Nov 2005 22:46:50 -0000
@@ -162,7 +162,7 @@
/* END COMPILE TIME DEFINITIONS */
/* END COMPILE TIME DEFINITIONS */
...
@@ -25,16 +34,26 @@ diff -u -r1.66 common.h
...
@@ -25,16 +34,26 @@ diff -u -r1.66 common.h
#include <stdlib.h>
#include <stdlib.h>
@@ -309,8 +309,11 @@
@@ -288,8 +288,11 @@
*y2 = MUL_F(x2, c1) - MUL_F(x1, c2);
}
}
-
- #if defined(_WIN32) && !defined(__MINGW32__)
- #if defined(_WIN32) && !defined(__MINGW32__)
+#ifndef HAVE_LRINTF
+ #if defined(__MINGWCE__)
+ #if defined(__MINGWCE__)
+ #elif defined(__MINGW32__) || defined(__APPLE__)
+ #elif defined(__MINGW32__) || defined(__APPLE__)
#define HAS_LRINTF
+ #elif defined(_WIN32)
+ #define HAS_LRINTF
+ #define HAS_LRINTF
+ #elif defined(_WIN32)
#define HAS_LRINTF
static INLINE int lrintf(float f)
static INLINE int lrintf(float f)
{
{
int i;
@@ -315,7 +318,7 @@
return i;
}
#endif
-
+#endif
#ifdef __ICL /* only Intel C compiler has fmath ??? */
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