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
8fb70648
Commit
8fb70648
authored
Aug 21, 2023
by
Daniel Lehman
Committed by
Alexandre Julliard
Aug 23, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
include: Add [_w]getenv_s.
parent
73695eff
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
0 deletions
+22
-0
corecrt_wstdlib.h
include/msvcrt/corecrt_wstdlib.h
+11
-0
stdlib.h
include/msvcrt/stdlib.h
+11
-0
No files found.
include/msvcrt/corecrt_wstdlib.h
View file @
8fb70648
...
@@ -24,6 +24,7 @@ _ACRTIMP wchar_t* __cdecl _ultow(__msvcrt_ulong,wchar_t*,int);
...
@@ -24,6 +24,7 @@ _ACRTIMP wchar_t* __cdecl _ultow(__msvcrt_ulong,wchar_t*,int);
_ACRTIMP
errno_t
__cdecl
_ultow_s
(
__msvcrt_ulong
,
wchar_t
*
,
size_t
,
int
);
_ACRTIMP
errno_t
__cdecl
_ultow_s
(
__msvcrt_ulong
,
wchar_t
*
,
size_t
,
int
);
_ACRTIMP
wchar_t
*
__cdecl
_wfullpath
(
wchar_t
*
,
const
wchar_t
*
,
size_t
);
_ACRTIMP
wchar_t
*
__cdecl
_wfullpath
(
wchar_t
*
,
const
wchar_t
*
,
size_t
);
_ACRTIMP
wchar_t
*
__cdecl
_wgetenv
(
const
wchar_t
*
);
_ACRTIMP
wchar_t
*
__cdecl
_wgetenv
(
const
wchar_t
*
);
_ACRTIMP
errno_t
__cdecl
_wgetenv_s
(
size_t
*
,
wchar_t
*
,
size_t
,
const
wchar_t
*
);
_ACRTIMP
void
__cdecl
_wmakepath
(
wchar_t
*
,
const
wchar_t
*
,
const
wchar_t
*
,
const
wchar_t
*
,
const
wchar_t
*
);
_ACRTIMP
void
__cdecl
_wmakepath
(
wchar_t
*
,
const
wchar_t
*
,
const
wchar_t
*
,
const
wchar_t
*
,
const
wchar_t
*
);
_ACRTIMP
int
__cdecl
_wmakepath_s
(
wchar_t
*
,
size_t
,
const
wchar_t
*
,
const
wchar_t
*
,
const
wchar_t
*
,
const
wchar_t
*
);
_ACRTIMP
int
__cdecl
_wmakepath_s
(
wchar_t
*
,
size_t
,
const
wchar_t
*
,
const
wchar_t
*
,
const
wchar_t
*
,
const
wchar_t
*
);
_ACRTIMP
void
__cdecl
_wperror
(
const
wchar_t
*
);
_ACRTIMP
void
__cdecl
_wperror
(
const
wchar_t
*
);
...
@@ -63,6 +64,16 @@ _ACRTIMP unsigned __int64 __cdecl wcstoull(const wchar_t*,wchar_t**,int);
...
@@ -63,6 +64,16 @@ _ACRTIMP unsigned __int64 __cdecl wcstoull(const wchar_t*,wchar_t**,int);
_ACRTIMP
unsigned
__int64
__cdecl
_wcstoull_l
(
const
wchar_t
*
,
wchar_t
**
,
int
,
_locale_t
);
_ACRTIMP
unsigned
__int64
__cdecl
_wcstoull_l
(
const
wchar_t
*
,
wchar_t
**
,
int
,
_locale_t
);
#ifdef __cplusplus
#ifdef __cplusplus
extern
"C++"
{
template
<
size_t
size
>
inline
errno_t
_wgetenv_s
(
size_t
*
ret
,
wchar_t
(
&
buf
)[
size
],
const
wchar_t
*
var
)
{
return
_wgetenv_s
(
ret
,
buf
,
size
,
var
);
}
}
/* extern "C++" */
}
}
#endif
#endif
...
...
include/msvcrt/stdlib.h
View file @
8fb70648
...
@@ -216,6 +216,7 @@ _ACRTIMP ldiv_t __cdecl ldiv(__msvcrt_long,__msvcrt_long);
...
@@ -216,6 +216,7 @@ _ACRTIMP ldiv_t __cdecl ldiv(__msvcrt_long,__msvcrt_long);
_ACRTIMP
lldiv_t
__cdecl
lldiv
(
__int64
,
__int64
);
_ACRTIMP
lldiv_t
__cdecl
lldiv
(
__int64
,
__int64
);
_ACRTIMP
DECLSPEC_NORETURN
void
__cdecl
exit
(
int
);
_ACRTIMP
DECLSPEC_NORETURN
void
__cdecl
exit
(
int
);
_ACRTIMP
char
*
__cdecl
getenv
(
const
char
*
);
_ACRTIMP
char
*
__cdecl
getenv
(
const
char
*
);
_ACRTIMP
errno_t
__cdecl
getenv_s
(
size_t
*
,
char
*
,
size_t
,
const
char
*
);
_ACRTIMP
__msvcrt_long
__cdecl
labs
(
__msvcrt_long
);
_ACRTIMP
__msvcrt_long
__cdecl
labs
(
__msvcrt_long
);
_ACRTIMP
__int64
__cdecl
llabs
(
__int64
);
_ACRTIMP
__int64
__cdecl
llabs
(
__int64
);
_ACRTIMP
int
__cdecl
mblen
(
const
char
*
,
size_t
);
_ACRTIMP
int
__cdecl
mblen
(
const
char
*
,
size_t
);
...
@@ -255,6 +256,16 @@ static inline long double strtold(const char *string, char **endptr) { return _s
...
@@ -255,6 +256,16 @@ static inline long double strtold(const char *string, char **endptr) { return _s
#endif
/* _UCRT */
#endif
/* _UCRT */
#ifdef __cplusplus
#ifdef __cplusplus
extern
"C++"
{
template
<
size_t
size
>
inline
errno_t
getenv_s
(
size_t
*
ret
,
char
(
&
buf
)[
size
],
const
char
*
var
)
{
return
getenv_s
(
ret
,
buf
,
size
,
var
);
}
}
/* extern "C++" */
}
}
#endif
#endif
...
...
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