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
69da21f1
Commit
69da21f1
authored
Apr 03, 2019
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
libport: Add stubs for libwine functions that don't make sense on Windows.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
8268c474
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
82 additions
and
0 deletions
+82
-0
Makefile.in
libs/port/Makefile.in
+1
-0
stubs.c
libs/port/stubs.c
+81
-0
No files found.
libs/port/Makefile.in
View file @
69da21f1
...
...
@@ -103,6 +103,7 @@ C_SRCS = \
statvfs.c
\
string.c
\
strnlen.c
\
stubs.c
\
symlink.c
\
usleep.c
\
utf8.c
\
...
...
libs/port/stubs.c
0 → 100644
View file @
69da21f1
/*
* Win32 libwine stubs
*
* Copyright 2019 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
*/
#ifdef _WIN32
#include "config.h"
#include <stdlib.h>
#include "windef.h"
int
__wine_main_argc
=
0
;
char
**
__wine_main_argv
=
NULL
;
WCHAR
**
__wine_main_wargv
=
NULL
;
const
char
*
wine_get_config_dir
(
void
)
{
const
char
*
ret
=
getenv
(
"WINEPREFIX"
);
if
(
!
ret
)
ret
=
getenv
(
"USERPROFILE"
);
return
ret
;
}
const
char
*
wine_get_data_dir
(
void
)
{
return
NULL
;
}
const
char
*
wine_get_build_dir
(
void
)
{
return
NULL
;
}
const
char
*
wine_get_user_name
(
void
)
{
return
getenv
(
"USERNAME"
);
}
const
char
*
wine_dll_enum_load_path
(
unsigned
int
index
)
{
return
NULL
;
}
void
*
wine_dlopen
(
const
char
*
filename
,
int
flag
,
char
*
error
,
size_t
errorsize
)
{
if
(
error
)
{
static
const
char
msg
[]
=
"no dlopen support on Windows"
;
size_t
len
=
min
(
errorsize
,
sizeof
(
msg
)
);
memcpy
(
error
,
msg
,
len
);
error
[
len
-
1
]
=
0
;
}
return
NULL
;
}
void
*
wine_dlsym
(
void
*
handle
,
const
char
*
symbol
,
char
*
error
,
size_t
errorsize
)
{
return
NULL
;
}
int
wine_dlclose
(
void
*
handle
,
char
*
error
,
size_t
errorsize
)
{
return
0
;
}
#endif
/* _WIN32 */
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