mirror of
https://git.code.sf.net/p/mingw-w64/mingw-w64
synced 2024-11-23 18:04:18 +08:00
Implement MSVC 2005 deprecated function warnings, off by default.
git-svn-id: svn+ssh://svn.code.sf.net/p/mingw-w64/code/trunk@1476 4407c894-4637-0410-b4f5-ada5f102cad1
This commit is contained in:
parent
b651ae9ea0
commit
ff428b3544
@ -1,3 +1,128 @@
|
||||
2009-10-16 Jonathan Yong <jon_y@users.sourceforge.net>
|
||||
|
||||
* stdio.h (fdopen): Mark as deprecated for msvc 2005.
|
||||
(fileno): Ditto.
|
||||
(unlink): Ditto.
|
||||
(vsnprintf): Ditto.
|
||||
(tempnam): Ditto.
|
||||
(fcloseall): Ditto.
|
||||
(fdopen): Ditto.
|
||||
(fgetchar): Ditto.
|
||||
(fileno): Ditto.
|
||||
(flushall): Ditto.
|
||||
(fputchar): Ditto.
|
||||
(getw): Ditto.
|
||||
(putw): Ditto.
|
||||
(rmtmp): Ditto.
|
||||
* wchar.h (wcsdup): Mark as deprecated for msvc 2005.
|
||||
(wcsnset): Ditto.
|
||||
(wcsrev): Ditto.
|
||||
(wcsset): Ditto.
|
||||
(wcslwr): Ditto.
|
||||
(wcsupr): Ditto.
|
||||
(wcsicoll): Ditto.
|
||||
* process.h (cwait): Mark as deprecated for msvc 2005.
|
||||
(execl): Ditto.
|
||||
(execle): Ditto.
|
||||
(execlp): Ditto.
|
||||
(execlpe): Ditto.
|
||||
(spawnl): Ditto.
|
||||
(spawnle): Ditto.
|
||||
(spawnlp): Ditto.
|
||||
(spawnlpe): Ditto.
|
||||
(execv): Ditto.
|
||||
(execve): Ditto.
|
||||
(execvp): Ditto.
|
||||
(execvpe): Ditto.
|
||||
(spawnv): Ditto.
|
||||
(spawnve): Ditto.
|
||||
(spawnvp): Ditto.
|
||||
(spawnvpe): Ditto.
|
||||
* memory.h (memccpy): Mark as deprecated for msvc 2005.
|
||||
(memicmp): Ditto.
|
||||
* stdlib.h (ecvt): Mark as deprecated for msvc 2005.
|
||||
(fcvt): Ditto.
|
||||
(gcvt): Ditto.
|
||||
(itoa): Ditto.
|
||||
(ltoa): Ditto.
|
||||
* search.h (lfind): Mark as deprecated for msvc 2005.
|
||||
(lsearch): Ditto.
|
||||
* math.h (j0): Mark as deprecated for msvc 2005.
|
||||
(j1): Ditto.
|
||||
(jn): Ditto.
|
||||
(y0): Ditto.
|
||||
(y1): Ditto.
|
||||
(yn): Ditto.
|
||||
(hypot): Ditto.
|
||||
* conio.h (cgets): Mark as deprecated for msvc 2005.
|
||||
(cprintf): Ditto.
|
||||
(cputs): Ditto.
|
||||
(cscanf): Ditto.
|
||||
(getch): Ditto.
|
||||
(getche): Ditto.
|
||||
(kbhit): Ditto.
|
||||
(putch): Ditto.
|
||||
(ungetch): Ditto.
|
||||
(inp): Ditto.
|
||||
(inpw): Ditto.
|
||||
(outp): Ditto.
|
||||
(outpw): Ditto.
|
||||
* io.h (unlink): Mark as deprecated for msvc 2005.
|
||||
(chdir): Ditto.
|
||||
(getcwd): Ditto.
|
||||
(mkdir): Ditto.
|
||||
(mktemp): Ditto.
|
||||
(rmdir): Ditto.
|
||||
(chmod): Ditto.
|
||||
(access): Ditto.
|
||||
(chsize): Ditto.
|
||||
(close): Ditto.
|
||||
(creat): Ditto.
|
||||
(dup): Ditto.
|
||||
(dup2): Ditto.
|
||||
(eof): Ditto.
|
||||
(filelength): Ditto.
|
||||
(isatty): Ditto.
|
||||
(locking): Ditto.
|
||||
(lseek): Ditto.
|
||||
(open): Ditto.
|
||||
(read): Ditto.
|
||||
(setmode): Ditto.
|
||||
(sopen): Ditto.
|
||||
(tell): Ditto.
|
||||
(umask): Ditto.
|
||||
(write): Ditto.
|
||||
* direct.h (getcwd): Mark as deprecated for msvc 2005.
|
||||
(chdir): Ditto.
|
||||
(mkdir): Ditto.
|
||||
(rmdir): Ditto.
|
||||
* ctype.h (isascii): Mark as deprecated for msvc 2005.
|
||||
(toascii): Ditto.
|
||||
(iscsymf): Ditto.
|
||||
(iscsym): Ditto.
|
||||
* complex.h (cabs): Mark as deprecated for msvc 2005.
|
||||
* time.h (tzset): Mark as deprecated for msvc 2005.
|
||||
* string.h (memccpy): Mark as deprecated for msvc 2005.
|
||||
(memicmp): Ditto.
|
||||
(strdup): Ditto.
|
||||
(strcmpi): Ditto.
|
||||
(stricmp): Ditto.
|
||||
(strlwr): Ditto.
|
||||
(strnicmp): Ditto.
|
||||
(strnset): Ditto.
|
||||
(strrev): Ditto.
|
||||
(strset): Ditto.
|
||||
(strupr): Ditto.
|
||||
(wcsdup): Ditto.
|
||||
(wcsicmp): Ditto.
|
||||
(wcsnicmp): Ditto.
|
||||
(wcsnset): Ditto.
|
||||
(wcsrev): Ditto.
|
||||
(wcsset): Ditto.
|
||||
(wcslwr): Ditto.
|
||||
(wcsupr): Ditto.
|
||||
(wcsicoll): Ditto.
|
||||
|
||||
2009-10-07 Jonathan Yong <jon_y@users.sourceforge.net>
|
||||
|
||||
* _mingw.h (__MINGW_ATTRIB_DEPRECATED_SEC_WARN): New macro. Warns about use of
|
||||
|
@ -51,7 +51,7 @@ extern "C" {
|
||||
double __MINGW_ATTRIB_CONST creal (double _Complex);
|
||||
double __MINGW_ATTRIB_CONST cimag (double _Complex);
|
||||
double __MINGW_ATTRIB_CONST carg (double _Complex);
|
||||
double __MINGW_ATTRIB_CONST cabs (double _Complex);
|
||||
double __MINGW_ATTRIB_CONST cabs (double _Complex) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
|
||||
double _Complex __MINGW_ATTRIB_CONST conj (double _Complex);
|
||||
double _Complex cacos (double _Complex);
|
||||
double _Complex casin (double _Complex);
|
||||
|
@ -74,21 +74,21 @@ extern "C" {
|
||||
#endif
|
||||
|
||||
#ifndef NO_OLDNAMES
|
||||
char *__cdecl cgets(char *_Buffer);
|
||||
int __cdecl cprintf(const char *_Format,...);
|
||||
int __cdecl cputs(const char *_Str);
|
||||
int __cdecl cscanf(const char *_Format,...);
|
||||
int __cdecl getch(void);
|
||||
int __cdecl getche(void);
|
||||
int __cdecl kbhit(void);
|
||||
int __cdecl putch(int _Ch);
|
||||
int __cdecl ungetch(int _Ch);
|
||||
char *__cdecl cgets(char *_Buffer) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
|
||||
int __cdecl cprintf(const char *_Format,...) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
|
||||
int __cdecl cputs(const char *_Str) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
|
||||
int __cdecl cscanf(const char *_Format,...) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
|
||||
int __cdecl getch(void) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
|
||||
int __cdecl getche(void) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
|
||||
int __cdecl kbhit(void) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
|
||||
int __cdecl putch(int _Ch) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
|
||||
int __cdecl ungetch(int _Ch) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
|
||||
|
||||
#if (defined(_X86_) && !defined(__x86_64))
|
||||
int __cdecl inp(unsigned short);
|
||||
unsigned short __cdecl inpw(unsigned short);
|
||||
int __cdecl outp(unsigned short,int);
|
||||
unsigned short __cdecl outpw(unsigned short,unsigned short);
|
||||
int __cdecl inp(unsigned short) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
|
||||
unsigned short __cdecl inpw(unsigned short) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
|
||||
int __cdecl outp(unsigned short,int) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
|
||||
unsigned short __cdecl outpw(unsigned short,unsigned short) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
|
||||
#endif
|
||||
|
||||
#ifndef __CRT__NO_INLINE
|
||||
|
@ -259,10 +259,10 @@ int __cdecl iswblank(wint_t _C);
|
||||
|
||||
#ifndef NO_OLDNAMES
|
||||
#ifndef _CTYPE_DEFINED
|
||||
int __cdecl isascii(int _C);
|
||||
int __cdecl toascii(int _C);
|
||||
int __cdecl iscsymf(int _C);
|
||||
int __cdecl iscsym(int _C);
|
||||
int __cdecl isascii(int _C) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
|
||||
int __cdecl toascii(int _C) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
|
||||
int __cdecl iscsymf(int _C) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
|
||||
int __cdecl iscsym(int _C) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
|
||||
#else
|
||||
#define isascii __isascii
|
||||
#define toascii __toascii
|
||||
|
@ -54,10 +54,10 @@ extern "C" {
|
||||
|
||||
#define diskfree_t _diskfree_t
|
||||
|
||||
char *__cdecl getcwd(char *_DstBuf,int _SizeInBytes);
|
||||
int __cdecl chdir(const char *_Path);
|
||||
int __cdecl mkdir(const char *_Path);
|
||||
int __cdecl rmdir(const char *_Path);
|
||||
char *__cdecl getcwd(char *_DstBuf,int _SizeInBytes) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
|
||||
int __cdecl chdir(const char *_Path) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
|
||||
int __cdecl mkdir(const char *_Path) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
|
||||
int __cdecl rmdir(const char *_Path) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
@ -219,7 +219,7 @@ _CRTIMP char* __cdecl _getcwd (char*, int);
|
||||
int __cdecl rename(const char *_OldFilename,const char *_NewFilename);
|
||||
_CRTIMP int __cdecl _unlink(const char *_Filename);
|
||||
#ifndef NO_OLDNAMES
|
||||
int __cdecl unlink(const char *_Filename);
|
||||
int __cdecl unlink(const char *_Filename) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
|
||||
#endif
|
||||
#endif
|
||||
|
||||
@ -279,12 +279,12 @@ _CRTIMP char* __cdecl _getcwd (char*, int);
|
||||
|
||||
#ifndef NO_OLDNAMES
|
||||
#ifndef _UWIN
|
||||
int __cdecl chdir (const char *);
|
||||
char *__cdecl getcwd (char *, int);
|
||||
int __cdecl mkdir (const char *);
|
||||
char *__cdecl mktemp(char *);
|
||||
int __cdecl rmdir (const char*);
|
||||
int __cdecl chmod (const char *, int);
|
||||
int __cdecl chdir (const char *) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
|
||||
char *__cdecl getcwd (char *, int) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
|
||||
int __cdecl mkdir (const char *) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
|
||||
char *__cdecl mktemp(char *) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
|
||||
int __cdecl rmdir (const char*) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
|
||||
int __cdecl chmod (const char *, int) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
|
||||
#endif /* _UWIN */
|
||||
#endif /* Not NO_OLDNAMES */
|
||||
|
||||
@ -324,26 +324,26 @@ _CRTIMP char* __cdecl _getcwd (char*, int);
|
||||
_CRTIMP int __cdecl _open_osfhandle(intptr_t _OSFileHandle,int _Flags);
|
||||
|
||||
#ifndef NO_OLDNAMES
|
||||
int __cdecl access(const char *_Filename,int _AccessMode);
|
||||
int __cdecl chmod(const char *_Filename,int _AccessMode);
|
||||
int __cdecl chsize(int _FileHandle,long _Size);
|
||||
int __cdecl close(int _FileHandle);
|
||||
int __cdecl creat(const char *_Filename,int _PermissionMode);
|
||||
int __cdecl dup(int _FileHandle);
|
||||
int __cdecl dup2(int _FileHandleSrc,int _FileHandleDst);
|
||||
int __cdecl eof(int _FileHandle);
|
||||
long __cdecl filelength(int _FileHandle);
|
||||
int __cdecl isatty(int _FileHandle);
|
||||
int __cdecl locking(int _FileHandle,int _LockMode,long _NumOfBytes);
|
||||
long __cdecl lseek(int _FileHandle,long _Offset,int _Origin);
|
||||
char *__cdecl mktemp(char *_TemplateName);
|
||||
int __cdecl open(const char *_Filename,int _OpenFlag,...);
|
||||
int __cdecl read(int _FileHandle,void *_DstBuf,unsigned int _MaxCharCount);
|
||||
int __cdecl setmode(int _FileHandle,int _Mode);
|
||||
int __cdecl sopen(const char *_Filename,int _OpenFlag,int _ShareFlag,...);
|
||||
long __cdecl tell(int _FileHandle);
|
||||
int __cdecl umask(int _Mode);
|
||||
int __cdecl write(int _Filehandle,const void *_Buf,unsigned int _MaxCharCount);
|
||||
int __cdecl access(const char *_Filename,int _AccessMode) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
|
||||
int __cdecl chmod(const char *_Filename,int _AccessMode) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
|
||||
int __cdecl chsize(int _FileHandle,long _Size) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
|
||||
int __cdecl close(int _FileHandle) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
|
||||
int __cdecl creat(const char *_Filename,int _PermissionMode) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
|
||||
int __cdecl dup(int _FileHandle) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
|
||||
int __cdecl dup2(int _FileHandleSrc,int _FileHandleDst) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
|
||||
int __cdecl eof(int _FileHandle) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
|
||||
long __cdecl filelength(int _FileHandle) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
|
||||
int __cdecl isatty(int _FileHandle) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
|
||||
int __cdecl locking(int _FileHandle,int _LockMode,long _NumOfBytes) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
|
||||
long __cdecl lseek(int _FileHandle,long _Offset,int _Origin) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
|
||||
char *__cdecl mktemp(char *_TemplateName) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
|
||||
int __cdecl open(const char *_Filename,int _OpenFlag,...) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
|
||||
int __cdecl read(int _FileHandle,void *_DstBuf,unsigned int _MaxCharCount) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
|
||||
int __cdecl setmode(int _FileHandle,int _Mode) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
|
||||
int __cdecl sopen(const char *_Filename,int _OpenFlag,int _ShareFlag,...) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
|
||||
long __cdecl tell(int _FileHandle) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
|
||||
int __cdecl umask(int _Mode) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
|
||||
int __cdecl write(int _Filehandle,const void *_Buf,unsigned int _MaxCharCount) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
|
||||
#endif
|
||||
|
||||
#ifdef _POSIX
|
||||
|
@ -180,12 +180,12 @@ extern "C" {
|
||||
|
||||
#if !defined(NO_OLDNAMES)
|
||||
|
||||
_CRTIMP double __cdecl j0 (double);
|
||||
_CRTIMP double __cdecl j1 (double);
|
||||
_CRTIMP double __cdecl jn (int, double);
|
||||
_CRTIMP double __cdecl y0 (double);
|
||||
_CRTIMP double __cdecl y1 (double);
|
||||
_CRTIMP double __cdecl yn (int, double);
|
||||
_CRTIMP double __cdecl j0 (double) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
|
||||
_CRTIMP double __cdecl j1 (double) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
|
||||
_CRTIMP double __cdecl jn (int, double) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
|
||||
_CRTIMP double __cdecl y0 (double) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
|
||||
_CRTIMP double __cdecl y1 (double) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
|
||||
_CRTIMP double __cdecl yn (int, double) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
|
||||
|
||||
_CRTIMP double __cdecl chgsign (double);
|
||||
/*
|
||||
@ -562,7 +562,7 @@ typedef long double double_t;
|
||||
#endif
|
||||
#endif
|
||||
/* 7.12.7.3 */
|
||||
extern double __cdecl hypot (double, double); /* in libmoldname.a */
|
||||
extern double __cdecl hypot (double, double) __MINGW_ATTRIB_DEPRECATED_MSVC2005; /* in libmoldname.a */
|
||||
extern float __cdecl hypotf (float x, float y);
|
||||
#ifndef __CRT__NO_INLINE
|
||||
__CRT_INLINE float __cdecl hypotf (float x, float y) { return (float) hypot ((double)x, (double)y);}
|
||||
|
@ -29,8 +29,8 @@ extern "C" {
|
||||
void *__cdecl memset(void *_Dst,int _Val,size_t _Size);
|
||||
|
||||
#ifndef NO_OLDNAMES
|
||||
void *__cdecl memccpy(void *_Dst,const void *_Src,int _Val,size_t _Size);
|
||||
int __cdecl memicmp(const void *_Buf1,const void *_Buf2,size_t _Size);
|
||||
void *__cdecl memccpy(void *_Dst,const void *_Src,int _Val,size_t _Size) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
|
||||
int __cdecl memicmp(const void *_Buf1,const void *_Buf2,size_t _Size) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
@ -131,42 +131,42 @@ extern "C" {
|
||||
#define WAIT_CHILD _WAIT_CHILD
|
||||
#define WAIT_GRANDCHILD _WAIT_GRANDCHILD
|
||||
|
||||
intptr_t __cdecl cwait(int *_TermStat,intptr_t _ProcHandle,int _Action);
|
||||
intptr_t __cdecl cwait(int *_TermStat,intptr_t _ProcHandle,int _Action) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
|
||||
#ifdef __GNUC__
|
||||
int __cdecl execl(const char *_Filename,const char *_ArgList,...);
|
||||
int __cdecl execle(const char *_Filename,const char *_ArgList,...);
|
||||
int __cdecl execlp(const char *_Filename,const char *_ArgList,...);
|
||||
int __cdecl execlpe(const char *_Filename,const char *_ArgList,...);
|
||||
int __cdecl execl(const char *_Filename,const char *_ArgList,...) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
|
||||
int __cdecl execle(const char *_Filename,const char *_ArgList,...) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
|
||||
int __cdecl execlp(const char *_Filename,const char *_ArgList,...) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
|
||||
int __cdecl execlpe(const char *_Filename,const char *_ArgList,...) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
|
||||
#else
|
||||
intptr_t __cdecl execl(const char *_Filename,const char *_ArgList,...);
|
||||
intptr_t __cdecl execle(const char *_Filename,const char *_ArgList,...);
|
||||
intptr_t __cdecl execlp(const char *_Filename,const char *_ArgList,...);
|
||||
intptr_t __cdecl execlpe(const char *_Filename,const char *_ArgList,...);
|
||||
intptr_t __cdecl execl(const char *_Filename,const char *_ArgList,...) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
|
||||
intptr_t __cdecl execle(const char *_Filename,const char *_ArgList,...) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
|
||||
intptr_t __cdecl execlp(const char *_Filename,const char *_ArgList,...) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
|
||||
intptr_t __cdecl execlpe(const char *_Filename,const char *_ArgList,...) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
|
||||
#endif
|
||||
intptr_t __cdecl spawnl(int,const char *_Filename,const char *_ArgList,...);
|
||||
intptr_t __cdecl spawnle(int,const char *_Filename,const char *_ArgList,...);
|
||||
intptr_t __cdecl spawnlp(int,const char *_Filename,const char *_ArgList,...);
|
||||
intptr_t __cdecl spawnlpe(int,const char *_Filename,const char *_ArgList,...);
|
||||
int __cdecl getpid(void);
|
||||
intptr_t __cdecl spawnl(int,const char *_Filename,const char *_ArgList,...) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
|
||||
intptr_t __cdecl spawnle(int,const char *_Filename,const char *_ArgList,...) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
|
||||
intptr_t __cdecl spawnlp(int,const char *_Filename,const char *_ArgList,...) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
|
||||
intptr_t __cdecl spawnlpe(int,const char *_Filename,const char *_ArgList,...) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
|
||||
int __cdecl getpid(void) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
|
||||
#ifdef __GNUC__
|
||||
/* Those methods are predefined by gcc builtins to return int. So to prevent
|
||||
stupid warnings, define them in POSIX way. This is save, because those
|
||||
methods do not return in success case, so that the return value is not
|
||||
really dependent to its scalar width. */
|
||||
int __cdecl execv(const char *_Filename,char *const _ArgList[]);
|
||||
int __cdecl execve(const char *_Filename,char *const _ArgList[],char *const _Env[]);
|
||||
int __cdecl execvp(const char *_Filename,char *const _ArgList[]);
|
||||
int __cdecl execvpe(const char *_Filename,char *const _ArgList[],char *const _Env[]);
|
||||
int __cdecl execv(const char *_Filename,char *const _ArgList[]) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
|
||||
int __cdecl execve(const char *_Filename,char *const _ArgList[],char *const _Env[]) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
|
||||
int __cdecl execvp(const char *_Filename,char *const _ArgList[]) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
|
||||
int __cdecl execvpe(const char *_Filename,char *const _ArgList[],char *const _Env[]) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
|
||||
#else
|
||||
intptr_t __cdecl execv(const char *_Filename,char *const _ArgList[]);
|
||||
intptr_t __cdecl execve(const char *_Filename,char *const _ArgList[],char *const _Env[]);
|
||||
intptr_t __cdecl execvp(const char *_Filename,char *const _ArgList[]);
|
||||
intptr_t __cdecl execvpe(const char *_Filename,char *const _ArgList[],char *const _Env[]);
|
||||
intptr_t __cdecl execv(const char *_Filename,char *const _ArgList[]) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
|
||||
intptr_t __cdecl execve(const char *_Filename,char *const _ArgList[],char *const _Env[]) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
|
||||
intptr_t __cdecl execvp(const char *_Filename,char *const _ArgList[]) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
|
||||
intptr_t __cdecl execvpe(const char *_Filename,char *const _ArgList[],char *const _Env[]) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
|
||||
#endif
|
||||
intptr_t __cdecl spawnv(int,const char *_Filename,char *const _ArgList[]);
|
||||
intptr_t __cdecl spawnve(int,const char *_Filename,char *const _ArgList[],char *const _Env[]);
|
||||
intptr_t __cdecl spawnvp(int,const char *_Filename,char *const _ArgList[]);
|
||||
intptr_t __cdecl spawnvpe(int,const char *_Filename,char *const _ArgList[],char *const _Env[]);
|
||||
intptr_t __cdecl spawnv(int,const char *_Filename,char *const _ArgList[]) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
|
||||
intptr_t __cdecl spawnve(int,const char *_Filename,char *const _ArgList[],char *const _Env[]) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
|
||||
intptr_t __cdecl spawnvp(int,const char *_Filename,char *const _ArgList[]) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
|
||||
intptr_t __cdecl spawnvpe(int,const char *_Filename,char *const _ArgList[],char *const _Env[]) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
@ -22,8 +22,8 @@ extern "C" {
|
||||
_CRTIMP void *__cdecl _lsearch(const void *_Key,void *_Base,unsigned int *_NumOfElements,unsigned int _SizeOfElements,int (__cdecl *_PtFuncCompare)(const void *,const void *));
|
||||
|
||||
#ifndef NO_OLDNAMES
|
||||
void *__cdecl lfind(const void *_Key,const void *_Base,unsigned int *_NumOfElements,unsigned int _SizeOfElements,int (__cdecl *_PtFuncCompare)(const void *,const void *));
|
||||
void *__cdecl lsearch(const void *_Key,void *_Base,unsigned int *_NumOfElements,unsigned int _SizeOfElements,int (__cdecl *_PtFuncCompare)(const void *,const void *));
|
||||
void *__cdecl lfind(const void *_Key,const void *_Base,unsigned int *_NumOfElements,unsigned int _SizeOfElements,int (__cdecl *_PtFuncCompare)(const void *,const void *)) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
|
||||
void *__cdecl lsearch(const void *_Key,void *_Base,unsigned int *_NumOfElements,unsigned int _SizeOfElements,int (__cdecl *_PtFuncCompare)(const void *,const void *)) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
@ -165,7 +165,7 @@ extern FILE (* __MINGW_IMP_SYMBOL(_iob))[]; /* A pointer to an array of FILE */
|
||||
int __cdecl fclose(FILE *_File);
|
||||
_CRTIMP int __cdecl _fcloseall(void);
|
||||
#ifdef _POSIX_
|
||||
FILE *__cdecl fdopen(int _FileHandle,const char *_Mode);
|
||||
FILE *__cdecl fdopen(int _FileHandle,const char *_Mode) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
|
||||
#else
|
||||
_CRTIMP FILE *__cdecl _fdopen(int _FileHandle,const char *_Mode);
|
||||
#endif
|
||||
@ -178,7 +178,7 @@ extern FILE (* __MINGW_IMP_SYMBOL(_iob))[]; /* A pointer to an array of FILE */
|
||||
char *__cdecl fgets(char *_Buf,int _MaxCount,FILE *_File);
|
||||
_CRTIMP int __cdecl _fileno(FILE *_File);
|
||||
#ifdef _POSIX_
|
||||
int __cdecl fileno(FILE *_File);
|
||||
int __cdecl fileno(FILE *_File) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
|
||||
#endif
|
||||
_CRTIMP char *__cdecl _tempnam(const char *_DirName,const char *_FilePrefix);
|
||||
_CRTIMP int __cdecl _flushall(void);
|
||||
@ -225,7 +225,7 @@ extern FILE (* __MINGW_IMP_SYMBOL(_iob))[]; /* A pointer to an array of FILE */
|
||||
int __cdecl rename(const char *_OldFilename,const char *_NewFilename);
|
||||
_CRTIMP int __cdecl _unlink(const char *_Filename);
|
||||
#ifndef NO_OLDNAMES
|
||||
int __cdecl unlink(const char *_Filename);
|
||||
int __cdecl unlink(const char *_Filename) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
|
||||
#endif
|
||||
#endif
|
||||
void __cdecl rewind(FILE *_File);
|
||||
@ -277,7 +277,7 @@ extern FILE (* __MINGW_IMP_SYMBOL(_iob))[]; /* A pointer to an array of FILE */
|
||||
extern
|
||||
__attribute__((__format__ (gnu_printf, 2, 0))) __attribute__((__nonnull__ (2)))
|
||||
int __cdecl __mingw_vsprintf (char *, const char *, va_list) __MINGW_NOTHROW;
|
||||
int __cdecl vsnprintf(char *_DstBuf,size_t _MaxCount,const char *_Format,va_list _ArgList);
|
||||
int __cdecl vsnprintf(char *_DstBuf,size_t _MaxCount,const char *_Format,va_list _ArgList) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
|
||||
_CRTIMP int __cdecl _snprintf(char *_Dest,size_t _Count,const char *_Format,...);
|
||||
_CRTIMP int __cdecl _vsnprintf(char *_Dest,size_t _Count,const char *_Format,va_list _Args);
|
||||
int __cdecl sprintf(char *_Dest,const char *_Format,...);
|
||||
@ -427,16 +427,16 @@ extern FILE (* __MINGW_IMP_SYMBOL(_iob))[]; /* A pointer to an array of FILE */
|
||||
#define P_tmpdir _P_tmpdir
|
||||
#define SYS_OPEN _SYS_OPEN
|
||||
|
||||
char *__cdecl tempnam(const char *_Directory,const char *_FilePrefix);
|
||||
int __cdecl fcloseall(void);
|
||||
FILE *__cdecl fdopen(int _FileHandle,const char *_Format);
|
||||
int __cdecl fgetchar(void);
|
||||
int __cdecl fileno(FILE *_File);
|
||||
int __cdecl flushall(void);
|
||||
int __cdecl fputchar(int _Ch);
|
||||
int __cdecl getw(FILE *_File);
|
||||
int __cdecl putw(int _Ch,FILE *_File);
|
||||
int __cdecl rmtmp(void);
|
||||
char *__cdecl tempnam(const char *_Directory,const char *_FilePrefix) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
|
||||
int __cdecl fcloseall(void) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
|
||||
FILE *__cdecl fdopen(int _FileHandle,const char *_Format) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
|
||||
int __cdecl fgetchar(void) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
|
||||
int __cdecl fileno(FILE *_File) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
|
||||
int __cdecl flushall(void) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
|
||||
int __cdecl fputchar(int _Ch) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
|
||||
int __cdecl getw(FILE *_File) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
|
||||
int __cdecl putw(int _Ch,FILE *_File) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
|
||||
int __cdecl rmtmp(void) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
@ -552,14 +552,14 @@ extern "C" {
|
||||
#define sys_errlist _sys_errlist
|
||||
#define sys_nerr _sys_nerr
|
||||
#define environ _environ
|
||||
char *__cdecl ecvt(double _Val,int _NumOfDigits,int *_PtDec,int *_PtSign);
|
||||
char *__cdecl fcvt(double _Val,int _NumOfDec,int *_PtDec,int *_PtSign);
|
||||
char *__cdecl gcvt(double _Val,int _NumOfDigits,char *_DstBuf);
|
||||
char *__cdecl itoa(int _Val,char *_DstBuf,int _Radix);
|
||||
char *__cdecl ltoa(long _Val,char *_DstBuf,int _Radix);
|
||||
int __cdecl putenv(const char *_EnvString);
|
||||
void __cdecl swab(char *_Buf1,char *_Buf2,int _SizeInBytes);
|
||||
char *__cdecl ultoa(unsigned long _Val,char *_Dstbuf,int _Radix);
|
||||
char *__cdecl ecvt(double _Val,int _NumOfDigits,int *_PtDec,int *_PtSign) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
|
||||
char *__cdecl fcvt(double _Val,int _NumOfDec,int *_PtDec,int *_PtSign) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
|
||||
char *__cdecl gcvt(double _Val,int _NumOfDigits,char *_DstBuf) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
|
||||
char *__cdecl itoa(int _Val,char *_DstBuf,int _Radix) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
|
||||
char *__cdecl ltoa(long _Val,char *_DstBuf,int _Radix) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
|
||||
int __cdecl putenv(const char *_EnvString) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
|
||||
void __cdecl swab(char *_Buf1,char *_Buf2,int _SizeInBytes) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
|
||||
char *__cdecl ultoa(unsigned long _Val,char *_Dstbuf,int _Radix) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
|
||||
onexit_t __cdecl onexit(onexit_t _Func);
|
||||
#endif
|
||||
#endif
|
||||
|
@ -41,8 +41,8 @@ extern "C" {
|
||||
void *__cdecl memcpy(void *_Dst,const void *_Src,size_t _Size);
|
||||
void *__cdecl memset(void *_Dst,int _Val,size_t _Size);
|
||||
#ifndef NO_OLDNAMES
|
||||
void *__cdecl memccpy(void *_Dst,const void *_Src,int _Val,size_t _Size);
|
||||
int __cdecl memicmp(const void *_Buf1,const void *_Buf2,size_t _Size);
|
||||
void *__cdecl memccpy(void *_Dst,const void *_Src,int _Val,size_t _Size) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
|
||||
int __cdecl memicmp(const void *_Buf1,const void *_Buf2,size_t _Size) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
|
||||
#endif
|
||||
#endif
|
||||
char *__cdecl _strset(char *_Str,int _Val);
|
||||
@ -90,11 +90,11 @@ extern "C" {
|
||||
_CRTIMP size_t __cdecl _strxfrm_l(char *_Dst,const char *_Src,size_t _MaxCount,_locale_t _Locale);
|
||||
|
||||
#ifndef NO_OLDNAMES
|
||||
char *__cdecl strdup(const char *_Src);
|
||||
int __cdecl strcmpi(const char *_Str1,const char *_Str2);
|
||||
int __cdecl stricmp(const char *_Str1,const char *_Str2);
|
||||
char *__cdecl strlwr(char *_Str);
|
||||
int __cdecl strnicmp(const char *_Str1,const char *_Str,size_t _MaxCount);
|
||||
char *__cdecl strdup(const char *_Src) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
|
||||
int __cdecl strcmpi(const char *_Str1,const char *_Str2) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
|
||||
int __cdecl stricmp(const char *_Str1,const char *_Str2) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
|
||||
char *__cdecl strlwr(char *_Str) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
|
||||
int __cdecl strnicmp(const char *_Str1,const char *_Str,size_t _MaxCount) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
|
||||
int __cdecl strncasecmp (const char *, const char *, size_t);
|
||||
int __cdecl strcasecmp (const char *, const char *);
|
||||
#ifndef __CRT__NO_INLINE
|
||||
@ -104,10 +104,10 @@ extern "C" {
|
||||
#define strncasecmp _strnicmp
|
||||
#define strcasecmp _stricmp
|
||||
#endif /* !__CRT__NO_INLINE */
|
||||
char *__cdecl strnset(char *_Str,int _Val,size_t _MaxCount);
|
||||
char *__cdecl strrev(char *_Str);
|
||||
char *__cdecl strset(char *_Str,int _Val);
|
||||
char *__cdecl strupr(char *_Str);
|
||||
char *__cdecl strnset(char *_Str,int _Val,size_t _MaxCount) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
|
||||
char *__cdecl strrev(char *_Str) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
|
||||
char *__cdecl strset(char *_Str,int _Val) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
|
||||
char *__cdecl strupr(char *_Str) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
|
||||
#endif
|
||||
|
||||
#ifndef _WSTRING_DEFINED
|
||||
@ -154,16 +154,16 @@ extern "C" {
|
||||
_CRTIMP int __cdecl _wcsnicoll_l(const wchar_t *_Str1,const wchar_t *_Str2,size_t _MaxCount,_locale_t _Locale);
|
||||
|
||||
#ifndef NO_OLDNAMES
|
||||
wchar_t *__cdecl wcsdup(const wchar_t *_Str);
|
||||
wchar_t *__cdecl wcsdup(const wchar_t *_Str) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
|
||||
#define wcswcs wcsstr
|
||||
int __cdecl wcsicmp(const wchar_t *_Str1,const wchar_t *_Str2);
|
||||
int __cdecl wcsnicmp(const wchar_t *_Str1,const wchar_t *_Str2,size_t _MaxCount);
|
||||
wchar_t *__cdecl wcsnset(wchar_t *_Str,wchar_t _Val,size_t _MaxCount);
|
||||
wchar_t *__cdecl wcsrev(wchar_t *_Str);
|
||||
wchar_t *__cdecl wcsset(wchar_t *_Str,wchar_t _Val);
|
||||
wchar_t *__cdecl wcslwr(wchar_t *_Str);
|
||||
wchar_t *__cdecl wcsupr(wchar_t *_Str);
|
||||
int __cdecl wcsicoll(const wchar_t *_Str1,const wchar_t *_Str2);
|
||||
int __cdecl wcsicmp(const wchar_t *_Str1,const wchar_t *_Str2) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
|
||||
int __cdecl wcsnicmp(const wchar_t *_Str1,const wchar_t *_Str2,size_t _MaxCount) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
|
||||
wchar_t *__cdecl wcsnset(wchar_t *_Str,wchar_t _Val,size_t _MaxCount) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
|
||||
wchar_t *__cdecl wcsrev(wchar_t *_Str) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
|
||||
wchar_t *__cdecl wcsset(wchar_t *_Str,wchar_t _Val) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
|
||||
wchar_t *__cdecl wcslwr(wchar_t *_Str) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
|
||||
wchar_t *__cdecl wcsupr(wchar_t *_Str) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
|
||||
int __cdecl wcsicoll(const wchar_t *_Str1,const wchar_t *_Str2) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
@ -123,7 +123,7 @@ extern "C" {
|
||||
__time32_t __cdecl _mktime32(struct tm *_Tm);
|
||||
__time32_t __cdecl _mkgmtime32(struct tm *_Tm);
|
||||
#if defined (_POSIX_) || defined(__GNUC__)
|
||||
void __cdecl tzset(void);
|
||||
void __cdecl tzset(void) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
|
||||
#endif
|
||||
#if !defined (_POSIX_)
|
||||
_CRTIMP void __cdecl _tzset(void);
|
||||
@ -241,7 +241,7 @@ __CRT_INLINE time_t __cdecl time(time_t *_Time) { return _time32(_Time); }
|
||||
_CRTIMP extern int daylight;
|
||||
_CRTIMP extern long timezone;
|
||||
_CRTIMP extern char *tzname[2];
|
||||
void __cdecl tzset(void);
|
||||
void __cdecl tzset(void) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
|
||||
#endif
|
||||
|
||||
#ifndef _TIMEVAL_DEFINED /* also in winsock[2].h */
|
||||
|
@ -763,16 +763,16 @@ extern FILE (* __MINGW_IMP_SYMBOL(_iob))[]; /* A pointer to an array of FILE */
|
||||
_CRTIMP int __cdecl _wcsnicoll_l(const wchar_t *_Str1,const wchar_t *_Str2,size_t _MaxCount,_locale_t _Locale);
|
||||
|
||||
#ifndef NO_OLDNAMES
|
||||
wchar_t *__cdecl wcsdup(const wchar_t *_Str);
|
||||
wchar_t *__cdecl wcsdup(const wchar_t *_Str) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
|
||||
#define wcswcs wcsstr
|
||||
int __cdecl wcsicmp(const wchar_t *_Str1,const wchar_t *_Str2);
|
||||
int __cdecl wcsnicmp(const wchar_t *_Str1,const wchar_t *_Str2,size_t _MaxCount);
|
||||
wchar_t *__cdecl wcsnset(wchar_t *_Str,wchar_t _Val,size_t _MaxCount);
|
||||
wchar_t *__cdecl wcsrev(wchar_t *_Str);
|
||||
wchar_t *__cdecl wcsset(wchar_t *_Str,wchar_t _Val);
|
||||
wchar_t *__cdecl wcslwr(wchar_t *_Str);
|
||||
wchar_t *__cdecl wcsupr(wchar_t *_Str);
|
||||
int __cdecl wcsicoll(const wchar_t *_Str1,const wchar_t *_Str2);
|
||||
int __cdecl wcsicmp(const wchar_t *_Str1,const wchar_t *_Str2) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
|
||||
int __cdecl wcsnicmp(const wchar_t *_Str1,const wchar_t *_Str2,size_t _MaxCount) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
|
||||
wchar_t *__cdecl wcsnset(wchar_t *_Str,wchar_t _Val,size_t _MaxCount) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
|
||||
wchar_t *__cdecl wcsrev(wchar_t *_Str) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
|
||||
wchar_t *__cdecl wcsset(wchar_t *_Str,wchar_t _Val) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
|
||||
wchar_t *__cdecl wcslwr(wchar_t *_Str) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
|
||||
wchar_t *__cdecl wcsupr(wchar_t *_Str) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
|
||||
int __cdecl wcsicoll(const wchar_t *_Str1,const wchar_t *_Str2) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user