Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
c4e45400
Commit
c4e45400
authored
Dec 01, 2020
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
libport: Remove the ffs() function replacement.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
335b05ac
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
0 additions
and
75 deletions
+0
-75
configure
configure
+0
-1
configure.ac
configure.ac
+0
-1
config.h.in
include/config.h.in
+0
-3
port.h
include/wine/port.h
+0
-5
Makefile.in
libs/port/Makefile.in
+0
-1
ffs.c
libs/port/ffs.c
+0
-64
No files found.
configure
View file @
c4e45400
...
...
@@ -17754,7 +17754,6 @@ for ac_func in \
__res_getservers
\
_spawnvp
\
epoll_create
\
ffs
\
fnmatch
\
fork
\
fstatfs
\
...
...
configure.ac
View file @
c4e45400
...
...
@@ -2163,7 +2163,6 @@ AC_CHECK_FUNCS(\
__res_getservers \
_spawnvp \
epoll_create \
ffs \
fnmatch \
fork \
fstatfs \
...
...
include/config.h.in
View file @
c4e45400
...
...
@@ -162,9 +162,6 @@
/* Define to 1 if you have the <FAudio.h> header file. */
#undef HAVE_FAUDIO_H
/* Define to 1 if you have the `ffs' function. */
#undef HAVE_FFS
/* Define to 1 if you have the <float.h> header file. */
#undef HAVE_FLOAT_H
...
...
include/wine/port.h
View file @
c4e45400
...
...
@@ -274,10 +274,6 @@ extern int getopt_long_only (int ___argc, char *const *___argv,
const
struct
option
*
__longopts
,
int
*
__longind
);
#endif
/* HAVE_GETOPT_LONG_ONLY */
#ifndef HAVE_FFS
int
ffs
(
int
x
);
#endif
#ifndef HAVE_LSTAT
int
lstat
(
const
char
*
file_name
,
struct
stat
*
buf
);
#endif
/* HAVE_LSTAT */
...
...
@@ -332,7 +328,6 @@ extern int mkstemps(char *template, int suffix_len);
#define __WINE_NOT_PORTABLE(func) func##_is_not_portable func##_is_not_portable
#define ffs __WINE_NOT_PORTABLE(ffs)
#define fstatvfs __WINE_NOT_PORTABLE(fstatvfs)
#define getopt_long __WINE_NOT_PORTABLE(getopt_long)
#define getopt_long_only __WINE_NOT_PORTABLE(getopt_long_only)
...
...
libs/port/Makefile.in
View file @
c4e45400
STATICLIB
=
libwine_port.a
C_SRCS
=
\
ffs.c
\
fstatvfs.c
\
getopt.c
\
isfinite.c
\
...
...
libs/port/ffs.c
deleted
100644 → 0
View file @
335b05ac
/*
* ffs function
*
* Copyright 2004 Hans Leidekker
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#include "config.h"
#include "wine/port.h"
#ifndef HAVE_FFS
int
ffs
(
int
x
)
{
unsigned
int
y
=
(
unsigned
int
)
x
;
if
(
y
&
0x00000001
)
return
1
;
if
(
y
&
0x00000002
)
return
2
;
if
(
y
&
0x00000004
)
return
3
;
if
(
y
&
0x00000008
)
return
4
;
if
(
y
&
0x00000010
)
return
5
;
if
(
y
&
0x00000020
)
return
6
;
if
(
y
&
0x00000040
)
return
7
;
if
(
y
&
0x00000080
)
return
8
;
if
(
y
&
0x00000100
)
return
9
;
if
(
y
&
0x00000200
)
return
10
;
if
(
y
&
0x00000400
)
return
11
;
if
(
y
&
0x00000800
)
return
12
;
if
(
y
&
0x00001000
)
return
13
;
if
(
y
&
0x00002000
)
return
14
;
if
(
y
&
0x00004000
)
return
15
;
if
(
y
&
0x00008000
)
return
16
;
if
(
y
&
0x00010000
)
return
17
;
if
(
y
&
0x00020000
)
return
18
;
if
(
y
&
0x00040000
)
return
19
;
if
(
y
&
0x00080000
)
return
20
;
if
(
y
&
0x00100000
)
return
21
;
if
(
y
&
0x00200000
)
return
22
;
if
(
y
&
0x00400000
)
return
23
;
if
(
y
&
0x00800000
)
return
24
;
if
(
y
&
0x01000000
)
return
25
;
if
(
y
&
0x02000000
)
return
26
;
if
(
y
&
0x04000000
)
return
27
;
if
(
y
&
0x08000000
)
return
28
;
if
(
y
&
0x10000000
)
return
29
;
if
(
y
&
0x20000000
)
return
30
;
if
(
y
&
0x40000000
)
return
31
;
if
(
y
&
0x80000000
)
return
32
;
return
0
;
}
#endif
/* HAVE_FFS */
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