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
4fcd86e1
Commit
4fcd86e1
authored
Mar 12, 2019
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
libport: Remove checks for memmove().
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
cba41d9b
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
0 additions
and
60 deletions
+0
-60
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
-6
Makefile.in
libs/port/Makefile.in
+0
-1
memmove.c
libs/port/memmove.c
+0
-48
No files found.
configure
View file @
4fcd86e1
...
...
@@ -16747,7 +16747,6 @@ for ac_func in \
getuid
\
kqueue
\
lstat
\
memmove
\
mmap
\
pclose
\
pipe2
\
...
...
configure.ac
View file @
4fcd86e1
...
...
@@ -2165,7 +2165,6 @@ AC_CHECK_FUNCS(\
getuid \
kqueue \
lstat \
memmove \
mmap \
pclose \
pipe2 \
...
...
include/config.h.in
View file @
4fcd86e1
...
...
@@ -600,9 +600,6 @@
/* Define to 1 if you have the <mach-o/nlist.h> header file. */
#undef HAVE_MACH_O_NLIST_H
/* Define to 1 if you have the `memmove' function. */
#undef HAVE_MEMMOVE
/* Define to 1 if you have the <memory.h> header file. */
#undef HAVE_MEMORY_H
...
...
include/wine/port.h
View file @
4fcd86e1
...
...
@@ -292,10 +292,6 @@ long lrintf(float x);
int
lstat
(
const
char
*
file_name
,
struct
stat
*
buf
);
#endif
/* HAVE_LSTAT */
#ifndef HAVE_MEMMOVE
void
*
memmove
(
void
*
dest
,
const
void
*
src
,
size_t
len
);
#endif
/* !defined(HAVE_MEMMOVE) */
#ifndef HAVE_POLL
struct
pollfd
{
...
...
@@ -523,8 +519,6 @@ extern __int64 interlocked_cmpxchg64( __int64 *dest, __int64 xchg, __int64 compa
#define interlocked_xchg_ptr __WINE_NOT_PORTABLE(interlocked_xchg_ptr)
#define interlocked_xchg_add __WINE_NOT_PORTABLE(interlocked_xchg_add)
#define lstat __WINE_NOT_PORTABLE(lstat)
#undef memmove
#define memmove __WINE_NOT_PORTABLE(memmove)
#define pread __WINE_NOT_PORTABLE(pread)
#define pwrite __WINE_NOT_PORTABLE(pwrite)
#define spawnvp __WINE_NOT_PORTABLE(spawnvp)
...
...
libs/port/Makefile.in
View file @
4fcd86e1
...
...
@@ -89,7 +89,6 @@ C_SRCS = \
isnan.c
\
lstat.c
\
mbtowc.c
\
memmove.c
\
mkstemps.c
\
normalize.c
\
poll.c
\
...
...
libs/port/memmove.c
deleted
100644 → 0
View file @
cba41d9b
/*
* memmove function
*
* Copyright 1996 Alexandre Julliard
*
* 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_MEMMOVE
void
*
memmove
(
void
*
dest
,
const
void
*
source
,
size_t
len
)
{
register
char
*
dst
=
dest
;
register
const
char
*
src
=
source
;
/* Use memcpy if not overlapping */
if
((
dst
+
len
<=
src
)
||
(
src
+
len
<=
dst
))
{
memcpy
(
dst
,
src
,
len
);
}
/* Otherwise do it the hard way (FIXME: could do better than this) */
else
if
(
dst
<
src
)
{
while
(
len
--
)
*
dst
++
=
*
src
++
;
}
else
{
dst
+=
len
-
1
;
src
+=
len
-
1
;
while
(
len
--
)
*
dst
--
=
*
src
--
;
}
return
dest
;
}
#endif
/* HAVE_MEMMOVE */
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