mirror of
https://git.code.sf.net/p/mingw-w64/mingw-w64
synced 2024-11-27 03:43:37 +08:00
crt: Move dummy stdio _lock() and _unlock() functions into stdio/mingw_dummy__lock.c file
It would be used also in followup changes. Signed-off-by: LIU Hao <lh_mouse@126.com>
This commit is contained in:
parent
424277b638
commit
609a2498c1
@ -430,6 +430,7 @@ src_crtdll=\
|
||||
misc/seterrno.c \
|
||||
stdio/_scprintf.c \
|
||||
stdio/_vscprintf.c \
|
||||
stdio/mingw_dummy__lock.c \
|
||||
stdio/mingw_lock.c
|
||||
|
||||
src_msvcr120_app=\
|
||||
|
@ -11,12 +11,6 @@
|
||||
#undef __setusermatherr
|
||||
void __setusermatherr(__UNUSED_PARAM(int (__cdecl *f)(struct _exception *))) { }
|
||||
|
||||
/* Define dummy _lock() and _unlock() functions as crtdll.dll does not provide them */
|
||||
void __cdecl _lock(int locknum);
|
||||
void __cdecl _unlock(int locknum);
|
||||
void __cdecl _lock(__UNUSED_PARAM(int locknum)) { }
|
||||
void __cdecl _unlock(__UNUSED_PARAM(int locknum)) { }
|
||||
|
||||
/* Define __getmainargs() function via crtdll.dll __GetMainArgs() function */
|
||||
extern void __GetMainArgs(int *argc, char ***argv, char ***envp, int expand_wildcards);
|
||||
int __cdecl __getmainargs(int *argc, char ***argv, char ***envp, int expand_wildcards, __UNUSED_PARAM(_startupinfo *startup_info))
|
||||
|
12
mingw-w64-crt/stdio/mingw_dummy__lock.c
Normal file
12
mingw-w64-crt/stdio/mingw_dummy__lock.c
Normal file
@ -0,0 +1,12 @@
|
||||
/**
|
||||
* This file has no copyright assigned and is placed in the Public Domain.
|
||||
* This file is part of the mingw-w64 runtime package.
|
||||
* No warranty is given; refer to the file DISCLAIMER.PD within this package.
|
||||
*/
|
||||
|
||||
#include <internal.h>
|
||||
|
||||
void __cdecl _lock(int locknum);
|
||||
void __cdecl _unlock(int locknum);
|
||||
void __cdecl _lock(__UNUSED_PARAM(int locknum)) { }
|
||||
void __cdecl _unlock(__UNUSED_PARAM(int locknum)) { }
|
Loading…
Reference in New Issue
Block a user