2000-02-18 03:38:33 +08:00
|
|
|
/*
|
|
|
|
* wchar.h
|
2004-04-21 06:49:32 +08:00
|
|
|
* This file has no copyright assigned and is placed in the Public Domain.
|
|
|
|
* This file is a part of the mingw-runtime package.
|
|
|
|
* No warranty is given; refer to the file DISCLAIMER within the package.
|
2000-02-18 03:38:33 +08:00
|
|
|
*
|
|
|
|
* Defines of all functions for supporting wide characters. Actually it
|
|
|
|
* just includes all those headers, which is not a good thing to do from a
|
|
|
|
* processing time point of view, but it does mean that everything will be
|
|
|
|
* in sync.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _WCHAR_H_
|
|
|
|
#define _WCHAR_H_
|
|
|
|
|
|
|
|
/* All the headers include this file. */
|
|
|
|
#include <_mingw.h>
|
|
|
|
|
2004-08-07 15:51:14 +08:00
|
|
|
#ifndef RC_INVOKED
|
2000-02-18 03:38:33 +08:00
|
|
|
|
|
|
|
#define __need_size_t
|
|
|
|
#define __need_wint_t
|
|
|
|
#define __need_wchar_t
|
2004-08-07 15:51:14 +08:00
|
|
|
#define __need_NULL
|
2000-02-18 03:38:33 +08:00
|
|
|
#include <stddef.h>
|
2004-08-07 15:51:14 +08:00
|
|
|
|
|
|
|
#ifndef __VALIST
|
|
|
|
#if defined __GNUC__ && __GNUC__ >= 3
|
|
|
|
#define __need___va_list
|
|
|
|
#include <stdarg.h>
|
|
|
|
#define __VALIST __builtin_va_list
|
|
|
|
#else
|
|
|
|
#define __VALIST char*
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
2000-02-18 03:38:33 +08:00
|
|
|
#endif /* Not RC_INVOKED */
|
|
|
|
|
2004-08-07 15:51:14 +08:00
|
|
|
/*
|
|
|
|
* MSDN says that isw* char classifications are in wchar.h and wctype.h.
|
|
|
|
* Although the wctype names are ANSI, their exposure in this header is
|
|
|
|
* not.
|
|
|
|
*/
|
|
|
|
#include <wctype.h>
|
|
|
|
|
|
|
|
#ifndef __STRICT_ANSI__
|
|
|
|
/* This is necessary to support the the non-ANSI wchar declarations
|
|
|
|
here. */
|
|
|
|
#include <sys/types.h>
|
|
|
|
#endif /* __STRICT_ANSI__ */
|
|
|
|
|
2000-02-18 03:38:33 +08:00
|
|
|
#define WCHAR_MIN 0
|
2005-05-04 17:29:09 +08:00
|
|
|
#define WCHAR_MAX 0xffff
|
2000-02-18 03:38:33 +08:00
|
|
|
|
2004-08-07 15:51:14 +08:00
|
|
|
#ifndef WEOF
|
|
|
|
#define WEOF (wchar_t)(0xFFFF)
|
|
|
|
#endif
|
|
|
|
|
2000-02-18 03:38:33 +08:00
|
|
|
#ifndef RC_INVOKED
|
|
|
|
|
2007-10-04 02:55:56 +08:00
|
|
|
#ifdef __cplusplus
|
2000-02-18 03:38:33 +08:00
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2004-08-07 15:51:14 +08:00
|
|
|
#ifndef _FILE_DEFINED /* Also in stdio.h */
|
|
|
|
#define _FILE_DEFINED
|
|
|
|
typedef struct _iobuf
|
|
|
|
{
|
|
|
|
char* _ptr;
|
|
|
|
int _cnt;
|
|
|
|
char* _base;
|
|
|
|
int _flag;
|
|
|
|
int _file;
|
|
|
|
int _charbuf;
|
|
|
|
int _bufsiz;
|
|
|
|
char* _tmpfname;
|
|
|
|
} FILE;
|
|
|
|
#endif /* Not _FILE_DEFINED */
|
|
|
|
|
|
|
|
#ifndef _TIME_T_DEFINED /* Also in time.h */
|
|
|
|
typedef long time_t;
|
|
|
|
#define _TIME_T_DEFINED
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef _TM_DEFINED /* Also in time.h */
|
|
|
|
struct tm {
|
|
|
|
int tm_sec; /* seconds after the minute - [0,59] */
|
|
|
|
int tm_min; /* minutes after the hour - [0,59] */
|
|
|
|
int tm_hour; /* hours since midnight - [0,23] */
|
|
|
|
int tm_mday; /* day of the month - [1,31] */
|
|
|
|
int tm_mon; /* months since January - [0,11] */
|
|
|
|
int tm_year; /* years since 1900 */
|
|
|
|
int tm_wday; /* days since Sunday - [0,6] */
|
|
|
|
int tm_yday; /* days since January 1 - [0,365] */
|
|
|
|
int tm_isdst; /* daylight savings time flag */
|
|
|
|
};
|
|
|
|
#define _TM_DEFINED
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef _WSTDIO_DEFINED
|
|
|
|
/* Also in stdio.h - keep in sync */
|
2007-06-23 15:34:16 +08:00
|
|
|
_CRTIMP int __cdecl __MINGW_NOTHROW fwprintf (FILE*, const wchar_t*, ...);
|
|
|
|
_CRTIMP int __cdecl __MINGW_NOTHROW wprintf (const wchar_t*, ...);
|
|
|
|
_CRTIMP int __cdecl __MINGW_NOTHROW _snwprintf (wchar_t*, size_t, const wchar_t*, ...);
|
|
|
|
_CRTIMP int __cdecl __MINGW_NOTHROW vfwprintf (FILE*, const wchar_t*, __VALIST);
|
|
|
|
_CRTIMP int __cdecl __MINGW_NOTHROW vwprintf (const wchar_t*, __VALIST);
|
|
|
|
_CRTIMP int __cdecl __MINGW_NOTHROW _vsnwprintf (wchar_t*, size_t, const wchar_t*, __VALIST);
|
|
|
|
_CRTIMP int __cdecl __MINGW_NOTHROW fwscanf (FILE*, const wchar_t*, ...);
|
|
|
|
_CRTIMP int __cdecl __MINGW_NOTHROW wscanf (const wchar_t*, ...);
|
|
|
|
_CRTIMP int __cdecl __MINGW_NOTHROW swscanf (const wchar_t*, const wchar_t*, ...);
|
|
|
|
_CRTIMP wint_t __cdecl __MINGW_NOTHROW fgetwc (FILE*);
|
|
|
|
_CRTIMP wint_t __cdecl __MINGW_NOTHROW fputwc (wchar_t, FILE*);
|
|
|
|
_CRTIMP wint_t __cdecl __MINGW_NOTHROW ungetwc (wchar_t, FILE*);
|
2004-08-07 15:51:14 +08:00
|
|
|
|
2008-07-04 11:55:50 +08:00
|
|
|
/* These differ from the ISO C prototypes, which have a maxlen parameter like snprintf. */
|
|
|
|
#ifndef __STRICT_ANSI__
|
|
|
|
_CRTIMP int __cdecl __MINGW_NOTHROW swprintf (wchar_t*, const wchar_t*, ...);
|
|
|
|
_CRTIMP int __cdecl __MINGW_NOTHROW vswprintf (wchar_t*, const wchar_t*, __VALIST);
|
|
|
|
#endif
|
|
|
|
|
2007-10-04 02:55:56 +08:00
|
|
|
#ifdef __MSVCRT__
|
2007-06-23 15:34:16 +08:00
|
|
|
_CRTIMP wchar_t* __cdecl __MINGW_NOTHROW fgetws (wchar_t*, int, FILE*);
|
|
|
|
_CRTIMP int __cdecl __MINGW_NOTHROW fputws (const wchar_t*, FILE*);
|
|
|
|
_CRTIMP wint_t __cdecl __MINGW_NOTHROW getwc (FILE*);
|
|
|
|
_CRTIMP wint_t __cdecl __MINGW_NOTHROW getwchar (void);
|
|
|
|
_CRTIMP wint_t __cdecl __MINGW_NOTHROW putwc (wint_t, FILE*);
|
|
|
|
_CRTIMP wint_t __cdecl __MINGW_NOTHROW putwchar (wint_t);
|
2004-08-07 15:51:14 +08:00
|
|
|
#ifndef __STRICT_ANSI__
|
2007-06-23 15:34:16 +08:00
|
|
|
_CRTIMP wchar_t* __cdecl __MINGW_NOTHROW _getws (wchar_t*);
|
|
|
|
_CRTIMP int __cdecl __MINGW_NOTHROW _putws (const wchar_t*);
|
2008-06-14 17:13:38 +08:00
|
|
|
_CRTIMP FILE* __cdecl __MINGW_NOTHROW _wfdopen(int, const wchar_t *);
|
2007-06-23 15:34:16 +08:00
|
|
|
_CRTIMP FILE* __cdecl __MINGW_NOTHROW _wfopen (const wchar_t*, const wchar_t*);
|
|
|
|
_CRTIMP FILE* __cdecl __MINGW_NOTHROW _wfreopen (const wchar_t*, const wchar_t*, FILE*);
|
|
|
|
_CRTIMP FILE* __cdecl __MINGW_NOTHROW _wfsopen (const wchar_t*, const wchar_t*, int);
|
|
|
|
_CRTIMP wchar_t* __cdecl __MINGW_NOTHROW _wtmpnam (wchar_t*);
|
|
|
|
_CRTIMP wchar_t* __cdecl __MINGW_NOTHROW _wtempnam (const wchar_t*, const wchar_t*);
|
|
|
|
_CRTIMP int __cdecl __MINGW_NOTHROW _wrename (const wchar_t*, const wchar_t*);
|
|
|
|
_CRTIMP int __cdecl __MINGW_NOTHROW _wremove (const wchar_t*);
|
|
|
|
_CRTIMP void __cdecl __MINGW_NOTHROW _wperror (const wchar_t*);
|
|
|
|
_CRTIMP FILE* __cdecl __MINGW_NOTHROW _wpopen (const wchar_t*, const wchar_t*);
|
2004-08-07 15:51:14 +08:00
|
|
|
#endif /* __STRICT_ANSI__ */
|
|
|
|
#endif /* __MSVCRT__ */
|
|
|
|
|
|
|
|
#ifndef __NO_ISOCEXT /* externs in libmingwex.a */
|
2009-08-08 Danny Smith <dannysmith@users.sourceforge.net>
* include/math.h (__fpclassifyl, __isnan, __isnanf, isnanl, __signbit,
__signbitf, __signbitl, sinhf, tanhf, expf, frexpf, ldexpf, hypotf, powf,
__fp_unordered_compare): Add prototypes.
* include/stdio.h (vsnwprintf): Add prototype.
* include/wchar.h (vsnwprintf): Add prototype.
* include/unistd.h (ftruncate): Move prototype out of __NO_INLINE__ guard.
2009-08-08 21:26:11 +08:00
|
|
|
int __cdecl __MINGW_NOTHROW snwprintf (wchar_t*, size_t, const wchar_t*, ...);
|
|
|
|
int __cdecl __MINGW_NOTHROW vsnwprintf (wchar_t*, size_t, const wchar_t*, __VALIST);
|
2009-07-18 23:19:03 +08:00
|
|
|
#ifndef __NO_INLINE__
|
2007-06-23 15:34:16 +08:00
|
|
|
__CRT_INLINE int __cdecl __MINGW_NOTHROW
|
2004-08-07 15:51:14 +08:00
|
|
|
vsnwprintf (wchar_t* s, size_t n, const wchar_t* format, __VALIST arg)
|
|
|
|
{ return _vsnwprintf ( s, n, format, arg);}
|
2009-07-18 23:19:03 +08:00
|
|
|
#endif
|
2007-06-23 15:34:16 +08:00
|
|
|
int __cdecl __MINGW_NOTHROW vwscanf (const wchar_t * __restrict__, __VALIST);
|
|
|
|
int __cdecl __MINGW_NOTHROW vfwscanf (FILE * __restrict__,
|
2004-08-07 15:51:14 +08:00
|
|
|
const wchar_t * __restrict__, __VALIST);
|
2007-06-23 15:34:16 +08:00
|
|
|
int __cdecl __MINGW_NOTHROW vswscanf (const wchar_t * __restrict__,
|
2004-08-07 15:51:14 +08:00
|
|
|
const wchar_t * __restrict__, __VALIST);
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#define _WSTDIO_DEFINED
|
|
|
|
#endif /* _WSTDIO_DEFINED */
|
2007-10-04 02:55:56 +08:00
|
|
|
|
2004-08-07 15:51:14 +08:00
|
|
|
#ifndef _WSTDLIB_DEFINED /* also declared in stdlib.h */
|
2007-07-12 17:38:17 +08:00
|
|
|
_CRTIMP long __cdecl __MINGW_NOTHROW wcstol (const wchar_t*, wchar_t**, int);
|
|
|
|
_CRTIMP unsigned long __cdecl __MINGW_NOTHROW wcstoul (const wchar_t*, wchar_t**, int);
|
|
|
|
_CRTIMP double __cdecl __MINGW_NOTHROW wcstod (const wchar_t*, wchar_t**);
|
Import David Gay's gdtoa library.
* mingwex/gdtoa: New directory.
* mingwex/gdtoa/(arithchk.c, dmisc.c, dtoa.c, g__fmt.c, g_dfmt.c,
g_ffmt.c, g_xfmt.c, gd_arith.h, gd_qnan.h, gdtoa.c, gdtoa.h,
gdtoaimp.h, gethex.c, gmisc.c, hd_init.c, hexnan.c, misc.c, qnan.c,
README, smisc.c, strtodg.c, strtodnrp.c, strtof.c, strtopx.c, sum.c,
ulp.c): New files.
* mingwex/(strtof.c, strtold.c, ldtoa.c): Remove files.
* mingwex/math/(cephes-emath.c, cephes-emath.h): Remove files.
* mingwex/mb_wc_common.h (get_cp_from_locale); Rename to get_codepage().
* mingwex/(btowc.c, wctob.c, mbrtowc.c, wcrtomb.c): Adjust call to get_codepage().
* mingwex/wcstold.c: Avoid using strtold internals.
* mingwex/wcstof.c: Rewrite.
* mingwex/Makefile.in (GDTOA_DISTFILES): Add to distribution.
(GDTOA_OBJS): Add to library.
(DISTFILES): Remove strtof.c strtold.c ldtoa.c cephes-emath.c cephes-emath.h.
(STDLIB_OBJS): Remove.
(STDLIB_STUB_OBJS): Remove strtof.o wcstof,o.
(Q8_OBJS): Add wcstof.o wcstold.o.
* include/stdlib.h (strtof): Remove inline definition.
(wcstof): Likewise.
* include/wchar.h (wcstof): Remove inline definition.
2006-09-01 07:48:56 +08:00
|
|
|
#if !defined __NO_ISOCEXT /* in libmingwex.a */
|
2007-06-23 15:34:16 +08:00
|
|
|
float __cdecl __MINGW_NOTHROW wcstof (const wchar_t * __restrict__, wchar_t ** __restrict__);
|
|
|
|
long double __cdecl __MINGW_NOTHROW wcstold (const wchar_t * __restrict__, wchar_t ** __restrict__);
|
2004-08-07 15:51:14 +08:00
|
|
|
#endif /* __NO_ISOCEXT */
|
2007-07-12 17:38:17 +08:00
|
|
|
#ifdef __MSVCRT__
|
|
|
|
_CRTIMP wchar_t* __cdecl __MINGW_NOTHROW _wgetenv(const wchar_t*);
|
|
|
|
_CRTIMP int __cdecl __MINGW_NOTHROW _wputenv(const wchar_t*);
|
|
|
|
_CRTIMP void __cdecl __MINGW_NOTHROW _wsearchenv(const wchar_t*, const wchar_t*, wchar_t*);
|
|
|
|
_CRTIMP int __cdecl __MINGW_NOTHROW _wsystem(const wchar_t*);
|
|
|
|
_CRTIMP void __cdecl __MINGW_NOTHROW _wmakepath(wchar_t*, const wchar_t*, const wchar_t*, const wchar_t*, const wchar_t*);
|
|
|
|
_CRTIMP void __cdecl __MINGW_NOTHROW _wsplitpath (const wchar_t*, wchar_t*, wchar_t*, wchar_t*, wchar_t*);
|
|
|
|
_CRTIMP wchar_t* __cdecl __MINGW_NOTHROW _wfullpath (wchar_t*, const wchar_t*, size_t);
|
|
|
|
#endif
|
2004-08-07 15:51:14 +08:00
|
|
|
#define _WSTDLIB_DEFINED
|
|
|
|
#endif /* _WSTDLIB_DEFINED */
|
|
|
|
|
|
|
|
#ifndef _WTIME_DEFINED
|
|
|
|
#ifndef __STRICT_ANSI__
|
|
|
|
#ifdef __MSVCRT__
|
|
|
|
/* wide function prototypes, also declared in time.h */
|
2007-06-23 15:34:16 +08:00
|
|
|
_CRTIMP wchar_t* __cdecl __MINGW_NOTHROW _wasctime (const struct tm*);
|
|
|
|
_CRTIMP wchar_t* __cdecl __MINGW_NOTHROW _wctime (const time_t*);
|
|
|
|
_CRTIMP wchar_t* __cdecl __MINGW_NOTHROW _wstrdate (wchar_t*);
|
|
|
|
_CRTIMP wchar_t* __cdecl __MINGW_NOTHROW _wstrtime (wchar_t*);
|
2004-08-07 15:51:14 +08:00
|
|
|
#if __MSVCRT_VERSION__ >= 0x601
|
2007-06-23 15:34:16 +08:00
|
|
|
_CRTIMP wchar_t* __cdecl __MINGW_NOTHROW _wctime64 (const __time64_t*);
|
2004-08-07 15:51:14 +08:00
|
|
|
#endif
|
|
|
|
#endif /* __MSVCRT__ */
|
|
|
|
#endif /* __STRICT_ANSI__ */
|
2007-06-23 15:34:16 +08:00
|
|
|
_CRTIMP size_t __cdecl __MINGW_NOTHROW wcsftime (wchar_t*, size_t, const wchar_t*, const struct tm*);
|
2004-08-07 15:51:14 +08:00
|
|
|
#define _WTIME_DEFINED
|
2007-10-04 02:55:56 +08:00
|
|
|
#endif /* _WTIME_DEFINED */
|
2004-08-07 15:51:14 +08:00
|
|
|
|
|
|
|
|
|
|
|
#ifndef _WSTRING_DEFINED
|
|
|
|
/*
|
|
|
|
* Unicode versions of the standard string calls.
|
|
|
|
* Also in string.h.
|
|
|
|
*/
|
2007-06-23 15:34:16 +08:00
|
|
|
_CRTIMP wchar_t* __cdecl __MINGW_NOTHROW wcscat (wchar_t*, const wchar_t*);
|
|
|
|
_CRTIMP wchar_t* __cdecl __MINGW_NOTHROW wcschr (const wchar_t*, wchar_t);
|
|
|
|
_CRTIMP int __cdecl __MINGW_NOTHROW wcscmp (const wchar_t*, const wchar_t*);
|
|
|
|
_CRTIMP int __cdecl __MINGW_NOTHROW wcscoll (const wchar_t*, const wchar_t*);
|
|
|
|
_CRTIMP wchar_t* __cdecl __MINGW_NOTHROW wcscpy (wchar_t*, const wchar_t*);
|
|
|
|
_CRTIMP size_t __cdecl __MINGW_NOTHROW wcscspn (const wchar_t*, const wchar_t*);
|
2004-08-07 15:51:14 +08:00
|
|
|
/* Note: _wcserror requires __MSVCRT_VERSION__ >= 0x0700. */
|
2007-06-23 15:34:16 +08:00
|
|
|
_CRTIMP size_t __cdecl __MINGW_NOTHROW wcslen (const wchar_t*);
|
|
|
|
_CRTIMP wchar_t* __cdecl __MINGW_NOTHROW wcsncat (wchar_t*, const wchar_t*, size_t);
|
|
|
|
_CRTIMP int __cdecl __MINGW_NOTHROW wcsncmp(const wchar_t*, const wchar_t*, size_t);
|
|
|
|
_CRTIMP wchar_t* __cdecl __MINGW_NOTHROW wcsncpy(wchar_t*, const wchar_t*, size_t);
|
|
|
|
_CRTIMP wchar_t* __cdecl __MINGW_NOTHROW wcspbrk(const wchar_t*, const wchar_t*);
|
|
|
|
_CRTIMP wchar_t* __cdecl __MINGW_NOTHROW wcsrchr(const wchar_t*, wchar_t);
|
|
|
|
_CRTIMP size_t __cdecl __MINGW_NOTHROW wcsspn(const wchar_t*, const wchar_t*);
|
|
|
|
_CRTIMP wchar_t* __cdecl __MINGW_NOTHROW wcsstr(const wchar_t*, const wchar_t*);
|
|
|
|
_CRTIMP wchar_t* __cdecl __MINGW_NOTHROW wcstok(wchar_t*, const wchar_t*);
|
|
|
|
_CRTIMP size_t __cdecl __MINGW_NOTHROW wcsxfrm(wchar_t*, const wchar_t*, size_t);
|
2004-08-07 15:51:14 +08:00
|
|
|
|
|
|
|
#ifndef __STRICT_ANSI__
|
|
|
|
/*
|
|
|
|
* Unicode versions of non-ANSI functions provided by CRTDLL.
|
|
|
|
*/
|
|
|
|
|
|
|
|
/* NOTE: _wcscmpi not provided by CRTDLL, this define is for portability */
|
|
|
|
#define _wcscmpi _wcsicmp
|
|
|
|
|
2007-06-23 15:34:16 +08:00
|
|
|
_CRTIMP wchar_t* __cdecl __MINGW_NOTHROW _wcsdup (const wchar_t*);
|
|
|
|
_CRTIMP int __cdecl __MINGW_NOTHROW _wcsicmp (const wchar_t*, const wchar_t*);
|
|
|
|
_CRTIMP int __cdecl __MINGW_NOTHROW _wcsicoll (const wchar_t*, const wchar_t*);
|
|
|
|
_CRTIMP wchar_t* __cdecl __MINGW_NOTHROW _wcslwr (wchar_t*);
|
|
|
|
_CRTIMP int __cdecl __MINGW_NOTHROW _wcsnicmp (const wchar_t*, const wchar_t*, size_t);
|
|
|
|
_CRTIMP wchar_t* __cdecl __MINGW_NOTHROW _wcsnset (wchar_t*, wchar_t, size_t);
|
|
|
|
_CRTIMP wchar_t* __cdecl __MINGW_NOTHROW _wcsrev (wchar_t*);
|
|
|
|
_CRTIMP wchar_t* __cdecl __MINGW_NOTHROW _wcsset (wchar_t*, wchar_t);
|
|
|
|
_CRTIMP wchar_t* __cdecl __MINGW_NOTHROW _wcsupr (wchar_t*);
|
2004-08-07 15:51:14 +08:00
|
|
|
|
|
|
|
#ifdef __MSVCRT__
|
2007-06-23 15:34:16 +08:00
|
|
|
_CRTIMP int __cdecl __MINGW_NOTHROW _wcsncoll(const wchar_t*, const wchar_t*, size_t);
|
|
|
|
_CRTIMP int __cdecl __MINGW_NOTHROW _wcsnicoll(const wchar_t*, const wchar_t*, size_t);
|
2004-08-07 15:51:14 +08:00
|
|
|
#if __MSVCRT_VERSION__ >= 0x0700
|
2007-06-23 15:34:16 +08:00
|
|
|
_CRTIMP wchar_t* __cdecl __MINGW_NOTHROW _wcserror(int);
|
|
|
|
_CRTIMP wchar_t* __cdecl __MINGW_NOTHROW __wcserror(const wchar_t*);
|
2004-08-07 15:51:14 +08:00
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef _NO_OLDNAMES
|
|
|
|
/* NOTE: There is no _wcscmpi, but this is for compatibility. */
|
2009-08-08 Danny Smith <dannysmith@users.sourceforge.net>
* include/math.h (__fpclassifyl, __isnan, __isnanf, isnanl, __signbit,
__signbitf, __signbitl, sinhf, tanhf, expf, frexpf, ldexpf, hypotf, powf,
__fp_unordered_compare): Add prototypes.
* include/stdio.h (vsnwprintf): Add prototype.
* include/wchar.h (vsnwprintf): Add prototype.
* include/unistd.h (ftruncate): Move prototype out of __NO_INLINE__ guard.
2009-08-08 21:26:11 +08:00
|
|
|
int __cdecl __MINGW_NOTHROW wcscmpi (const wchar_t *, const wchar_t *);
|
2009-07-18 23:19:03 +08:00
|
|
|
#ifndef __NO_INLINE__
|
2007-06-23 15:34:16 +08:00
|
|
|
__CRT_INLINE int __cdecl __MINGW_NOTHROW
|
2004-08-07 15:51:14 +08:00
|
|
|
wcscmpi (const wchar_t * __ws1, const wchar_t * __ws2)
|
|
|
|
{return _wcsicmp (__ws1, __ws2);}
|
2009-07-18 23:19:03 +08:00
|
|
|
#endif
|
2007-06-23 15:34:16 +08:00
|
|
|
_CRTIMP wchar_t* __cdecl __MINGW_NOTHROW wcsdup (const wchar_t*);
|
|
|
|
_CRTIMP int __cdecl __MINGW_NOTHROW wcsicmp (const wchar_t*, const wchar_t*);
|
|
|
|
_CRTIMP int __cdecl __MINGW_NOTHROW wcsicoll (const wchar_t*, const wchar_t*);
|
|
|
|
_CRTIMP wchar_t* __cdecl __MINGW_NOTHROW wcslwr (wchar_t*);
|
|
|
|
_CRTIMP int __cdecl __MINGW_NOTHROW wcsnicmp (const wchar_t*, const wchar_t*, size_t);
|
|
|
|
_CRTIMP wchar_t* __cdecl __MINGW_NOTHROW wcsnset (wchar_t*, wchar_t, size_t);
|
|
|
|
_CRTIMP wchar_t* __cdecl __MINGW_NOTHROW wcsrev (wchar_t*);
|
|
|
|
_CRTIMP wchar_t* __cdecl __MINGW_NOTHROW wcsset (wchar_t*, wchar_t);
|
|
|
|
_CRTIMP wchar_t* __cdecl __MINGW_NOTHROW wcsupr (wchar_t*);
|
2004-08-07 15:51:14 +08:00
|
|
|
#endif /* Not _NO_OLDNAMES */
|
|
|
|
|
|
|
|
#endif /* Not strict ANSI */
|
|
|
|
|
|
|
|
#define _WSTRING_DEFINED
|
|
|
|
#endif /* _WSTRING_DEFINED */
|
|
|
|
|
2005-04-24 19:30:27 +08:00
|
|
|
/* These are resolved by -lmingwex. Alternatively, they can be resolved by
|
|
|
|
adding -lmsvcp60 to your command line, which will give you the VC++
|
|
|
|
versions of these functions. If you want the latter and don't have
|
|
|
|
msvcp60.dll in your windows system directory, you can easily obtain
|
|
|
|
it with a search from your favorite search engine. */
|
2004-08-07 15:51:14 +08:00
|
|
|
#ifndef __STRICT_ANSI__
|
|
|
|
typedef wchar_t _Wint_t;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
typedef int mbstate_t;
|
|
|
|
|
2007-06-23 15:34:16 +08:00
|
|
|
wint_t __cdecl __MINGW_NOTHROW btowc(int);
|
|
|
|
size_t __cdecl __MINGW_NOTHROW mbrlen(const char * __restrict__, size_t,
|
2005-04-24 19:30:27 +08:00
|
|
|
mbstate_t * __restrict__);
|
2007-06-23 15:34:16 +08:00
|
|
|
size_t __cdecl __MINGW_NOTHROW mbrtowc(wchar_t * __restrict__, const char * __restrict__,
|
2005-04-24 19:30:27 +08:00
|
|
|
size_t, mbstate_t * __restrict__);
|
2007-06-23 15:34:16 +08:00
|
|
|
size_t __cdecl __MINGW_NOTHROW mbsrtowcs(wchar_t * __restrict__, const char ** __restrict__,
|
2005-04-24 19:30:27 +08:00
|
|
|
size_t, mbstate_t * __restrict__);
|
2007-06-23 15:34:16 +08:00
|
|
|
size_t __cdecl __MINGW_NOTHROW wcrtomb(char * __restrict__, wchar_t,
|
2005-04-24 19:30:27 +08:00
|
|
|
mbstate_t * __restrict__);
|
2007-06-23 15:34:16 +08:00
|
|
|
size_t __cdecl __MINGW_NOTHROW wcsrtombs(char * __restrict__, const wchar_t ** __restrict__,
|
2005-04-24 19:30:27 +08:00
|
|
|
size_t, mbstate_t * __restrict__);
|
2007-06-23 15:34:16 +08:00
|
|
|
int __cdecl __MINGW_NOTHROW wctob(wint_t);
|
2004-08-07 15:51:14 +08:00
|
|
|
|
|
|
|
#ifndef __NO_ISOCEXT /* these need static lib libmingwex.a */
|
2008-03-21 20:45:27 +08:00
|
|
|
int __cdecl __MINGW_NOTHROW fwide(FILE*, int);
|
|
|
|
int __cdecl __MINGW_NOTHROW mbsinit(const mbstate_t*);
|
|
|
|
#ifndef __NO_INLINE__
|
2007-06-23 15:34:16 +08:00
|
|
|
__CRT_INLINE int __cdecl __MINGW_NOTHROW fwide(FILE* __UNUSED_PARAM(stream),
|
2008-04-26 08:16:37 +08:00
|
|
|
int mode)
|
|
|
|
{return mode;} /* Nothing to do */
|
2007-06-23 15:34:16 +08:00
|
|
|
__CRT_INLINE int __cdecl __MINGW_NOTHROW mbsinit(const mbstate_t* __UNUSED_PARAM(ps))
|
2004-08-07 15:51:14 +08:00
|
|
|
{return 1;}
|
2008-03-21 20:45:27 +08:00
|
|
|
#endif
|
2007-06-23 15:34:16 +08:00
|
|
|
wchar_t* __cdecl __MINGW_NOTHROW wmemset(wchar_t *, wchar_t, size_t);
|
|
|
|
wchar_t* __cdecl __MINGW_NOTHROW wmemchr(const wchar_t*, wchar_t, size_t);
|
2005-04-24 19:30:27 +08:00
|
|
|
int wmemcmp(const wchar_t*, const wchar_t *, size_t);
|
2007-06-23 15:34:16 +08:00
|
|
|
wchar_t* __cdecl __MINGW_NOTHROW wmemcpy(wchar_t* __restrict__,
|
2005-04-24 19:30:27 +08:00
|
|
|
const wchar_t* __restrict__,
|
|
|
|
size_t);
|
2007-06-23 15:34:16 +08:00
|
|
|
wchar_t* __cdecl __MINGW_NOTHROW wmemmove(wchar_t* s1, const wchar_t *, size_t);
|
|
|
|
long long __cdecl __MINGW_NOTHROW wcstoll(const wchar_t * __restrict__,
|
2005-04-24 19:30:27 +08:00
|
|
|
wchar_t** __restrict__, int);
|
2007-06-23 15:34:16 +08:00
|
|
|
unsigned long long __cdecl __MINGW_NOTHROW wcstoull(const wchar_t * __restrict__,
|
2005-04-24 19:30:27 +08:00
|
|
|
wchar_t ** __restrict__, int);
|
2004-08-07 15:51:14 +08:00
|
|
|
#endif /* __NO_ISOCEXT */
|
|
|
|
|
2000-02-18 03:38:33 +08:00
|
|
|
#ifndef __STRICT_ANSI__
|
2004-08-07 15:51:14 +08:00
|
|
|
/* non-ANSI wide char functions from io.h, direct.h, sys/stat.h and locale.h. */
|
2000-02-18 03:38:33 +08:00
|
|
|
|
|
|
|
#ifndef _FSIZE_T_DEFINED
|
|
|
|
typedef unsigned long _fsize_t;
|
|
|
|
#define _FSIZE_T_DEFINED
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef _WFINDDATA_T_DEFINED
|
|
|
|
struct _wfinddata_t {
|
2004-03-26 19:30:24 +08:00
|
|
|
unsigned attrib;
|
|
|
|
time_t time_create; /* -1 for FAT file systems */
|
|
|
|
time_t time_access; /* -1 for FAT file systems */
|
|
|
|
time_t time_write;
|
|
|
|
_fsize_t size;
|
2004-08-07 15:51:14 +08:00
|
|
|
wchar_t name[260]; /* may include spaces. */
|
2000-02-18 03:38:33 +08:00
|
|
|
};
|
2000-11-21 10:50:03 +08:00
|
|
|
struct _wfinddatai64_t {
|
2004-03-26 19:30:24 +08:00
|
|
|
unsigned attrib;
|
|
|
|
time_t time_create;
|
|
|
|
time_t time_access;
|
|
|
|
time_t time_write;
|
|
|
|
__int64 size;
|
2004-08-07 15:51:14 +08:00
|
|
|
wchar_t name[260];
|
2004-03-26 19:30:24 +08:00
|
|
|
};
|
2007-10-04 02:55:56 +08:00
|
|
|
#if __MSVCRT_VERSION__ >= 0x0601
|
2004-03-26 19:30:24 +08:00
|
|
|
struct __wfinddata64_t {
|
|
|
|
unsigned attrib;
|
2007-10-04 02:55:56 +08:00
|
|
|
__time64_t time_create;
|
2004-03-26 19:30:24 +08:00
|
|
|
__time64_t time_access;
|
|
|
|
__time64_t time_write;
|
2007-10-04 02:55:56 +08:00
|
|
|
/* 8 bytes are returned so it can't be _fsize_t */
|
|
|
|
__int64 size;
|
2004-08-07 15:51:14 +08:00
|
|
|
wchar_t name[260];
|
2000-11-21 10:50:03 +08:00
|
|
|
};
|
2007-10-04 02:55:56 +08:00
|
|
|
#endif
|
2000-02-18 03:38:33 +08:00
|
|
|
#define _WFINDDATA_T_DEFINED
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/* Wide character versions. Also defined in io.h. */
|
|
|
|
/* CHECK: I believe these only exist in MSVCRT, and not in CRTDLL. Also
|
|
|
|
applies to other wide character versions? */
|
2000-11-21 10:50:03 +08:00
|
|
|
#if !defined (_WIO_DEFINED)
|
|
|
|
#if defined (__MSVCRT__)
|
2004-08-07 15:51:14 +08:00
|
|
|
#include <stdint.h> /* For intptr_t. */
|
2007-06-23 15:34:16 +08:00
|
|
|
_CRTIMP int __cdecl __MINGW_NOTHROW _waccess (const wchar_t*, int);
|
|
|
|
_CRTIMP int __cdecl __MINGW_NOTHROW _wchmod (const wchar_t*, int);
|
|
|
|
_CRTIMP int __cdecl __MINGW_NOTHROW _wcreat (const wchar_t*, int);
|
|
|
|
_CRTIMP long __cdecl __MINGW_NOTHROW _wfindfirst (const wchar_t*, struct _wfinddata_t *);
|
|
|
|
_CRTIMP int __cdecl __MINGW_NOTHROW _wfindnext (long, struct _wfinddata_t *);
|
|
|
|
_CRTIMP int __cdecl __MINGW_NOTHROW _wunlink (const wchar_t*);
|
|
|
|
_CRTIMP int __cdecl __MINGW_NOTHROW _wopen (const wchar_t*, int, ...);
|
|
|
|
_CRTIMP int __cdecl __MINGW_NOTHROW _wsopen (const wchar_t*, int, int, ...);
|
|
|
|
_CRTIMP wchar_t* __cdecl __MINGW_NOTHROW _wmktemp (wchar_t*);
|
|
|
|
_CRTIMP long __cdecl __MINGW_NOTHROW _wfindfirsti64 (const wchar_t*, struct _wfinddatai64_t*);
|
|
|
|
_CRTIMP int __cdecl __MINGW_NOTHROW _wfindnexti64 (long, struct _wfinddatai64_t*);
|
2004-03-26 19:30:24 +08:00
|
|
|
#if __MSVCRT_VERSION__ >= 0x0601
|
2007-06-23 15:34:16 +08:00
|
|
|
_CRTIMP intptr_t __cdecl __MINGW_NOTHROW _wfindfirst64(const wchar_t*, struct __wfinddata64_t*);
|
|
|
|
_CRTIMP intptr_t __cdecl __MINGW_NOTHROW _wfindnext64(intptr_t, struct __wfinddata64_t*);
|
2004-08-07 15:51:14 +08:00
|
|
|
#endif /* __MSVCRT_VERSION__ >= 0x0601 */
|
2000-11-21 10:50:03 +08:00
|
|
|
#endif /* defined (__MSVCRT__) */
|
|
|
|
#define _WIO_DEFINED
|
|
|
|
#endif /* _WIO_DEFINED */
|
|
|
|
|
2000-02-18 03:38:33 +08:00
|
|
|
#ifndef _WDIRECT_DEFINED
|
|
|
|
/* Also in direct.h */
|
2007-10-04 02:55:56 +08:00
|
|
|
#ifdef __MSVCRT__
|
2007-06-23 15:34:16 +08:00
|
|
|
_CRTIMP int __cdecl __MINGW_NOTHROW _wchdir (const wchar_t*);
|
|
|
|
_CRTIMP wchar_t* __cdecl __MINGW_NOTHROW _wgetcwd (wchar_t*, int);
|
|
|
|
_CRTIMP wchar_t* __cdecl __MINGW_NOTHROW _wgetdcwd (int, wchar_t*, int);
|
|
|
|
_CRTIMP int __cdecl __MINGW_NOTHROW _wmkdir (const wchar_t*);
|
|
|
|
_CRTIMP int __cdecl __MINGW_NOTHROW _wrmdir (const wchar_t*);
|
2000-11-21 10:50:03 +08:00
|
|
|
#endif /* __MSVCRT__ */
|
2000-02-18 03:38:33 +08:00
|
|
|
#define _WDIRECT_DEFINED
|
2000-11-21 10:50:03 +08:00
|
|
|
#endif /* _WDIRECT_DEFINED */
|
2000-02-18 03:38:33 +08:00
|
|
|
|
|
|
|
#ifndef _STAT_DEFINED
|
|
|
|
/*
|
|
|
|
* The structure manipulated and returned by stat and fstat.
|
|
|
|
*
|
|
|
|
* NOTE: If called on a directory the values in the time fields are not only
|
|
|
|
* invalid, they will cause localtime et. al. to return NULL. And calling
|
|
|
|
* asctime with a NULL pointer causes an Invalid Page Fault. So watch it!
|
|
|
|
*/
|
|
|
|
struct _stat
|
|
|
|
{
|
|
|
|
_dev_t st_dev; /* Equivalent to drive number 0=A 1=B ... */
|
|
|
|
_ino_t st_ino; /* Always zero ? */
|
|
|
|
_mode_t st_mode; /* See above constants */
|
|
|
|
short st_nlink; /* Number of links. */
|
|
|
|
short st_uid; /* User: Maybe significant on NT ? */
|
|
|
|
short st_gid; /* Group: Ditto */
|
|
|
|
_dev_t st_rdev; /* Seems useless (not even filled in) */
|
|
|
|
_off_t st_size; /* File size in bytes */
|
|
|
|
time_t st_atime; /* Accessed date (always 00:00 hrs local
|
|
|
|
* on FAT) */
|
|
|
|
time_t st_mtime; /* Modified time */
|
|
|
|
time_t st_ctime; /* Creation time */
|
|
|
|
};
|
|
|
|
|
2005-02-08 04:18:08 +08:00
|
|
|
#ifndef _NO_OLDNAMES
|
|
|
|
/* NOTE: Must be the same as _stat above. */
|
2000-02-18 03:38:33 +08:00
|
|
|
struct stat
|
|
|
|
{
|
2007-10-04 02:55:56 +08:00
|
|
|
dev_t st_dev; /* Equivalent to drive number 0=A 1=B ... */
|
|
|
|
ino_t st_ino; /* Always zero ? */
|
|
|
|
mode_t st_mode; /* See above constants */
|
2000-02-18 03:38:33 +08:00
|
|
|
short st_nlink; /* Number of links. */
|
|
|
|
short st_uid; /* User: Maybe significant on NT ? */
|
|
|
|
short st_gid; /* Group: Ditto */
|
2007-10-04 02:55:56 +08:00
|
|
|
dev_t st_rdev; /* Seems useless (not even filled in) */
|
|
|
|
off_t st_size; /* File size in bytes */
|
2000-02-18 03:38:33 +08:00
|
|
|
time_t st_atime; /* Accessed date (always 00:00 hrs local
|
|
|
|
* on FAT) */
|
|
|
|
time_t st_mtime; /* Modified time */
|
|
|
|
time_t st_ctime; /* Creation time */
|
|
|
|
};
|
2005-02-08 04:18:08 +08:00
|
|
|
#endif /* _NO_OLDNAMES */
|
2004-08-07 15:51:14 +08:00
|
|
|
|
2000-11-21 10:50:03 +08:00
|
|
|
#if defined (__MSVCRT__)
|
|
|
|
struct _stati64 {
|
|
|
|
_dev_t st_dev;
|
|
|
|
_ino_t st_ino;
|
|
|
|
unsigned short st_mode;
|
|
|
|
short st_nlink;
|
|
|
|
short st_uid;
|
|
|
|
short st_gid;
|
|
|
|
_dev_t st_rdev;
|
|
|
|
__int64 st_size;
|
|
|
|
time_t st_atime;
|
|
|
|
time_t st_mtime;
|
|
|
|
time_t st_ctime;
|
2007-10-04 02:55:56 +08:00
|
|
|
};
|
2004-03-26 19:30:24 +08:00
|
|
|
|
2007-10-04 02:55:56 +08:00
|
|
|
#if __MSVCRT_VERSION__ >= 0x0601
|
2004-03-26 19:30:24 +08:00
|
|
|
struct __stat64
|
|
|
|
{
|
|
|
|
_dev_t st_dev;
|
|
|
|
_ino_t st_ino;
|
|
|
|
_mode_t st_mode;
|
|
|
|
short st_nlink;
|
|
|
|
short st_uid;
|
|
|
|
short st_gid;
|
|
|
|
_dev_t st_rdev;
|
2005-01-17 13:03:17 +08:00
|
|
|
__int64 st_size;
|
2004-03-26 19:30:24 +08:00
|
|
|
__time64_t st_atime;
|
|
|
|
__time64_t st_mtime;
|
|
|
|
__time64_t st_ctime;
|
|
|
|
};
|
2007-10-04 02:55:56 +08:00
|
|
|
#endif /* __MSVCRT_VERSION__ */
|
2000-11-21 10:50:03 +08:00
|
|
|
#endif /* __MSVCRT__ */
|
2000-02-18 03:38:33 +08:00
|
|
|
#define _STAT_DEFINED
|
|
|
|
#endif /* _STAT_DEFINED */
|
|
|
|
|
2000-11-21 10:50:03 +08:00
|
|
|
#if !defined ( _WSTAT_DEFINED)
|
2000-02-18 03:38:33 +08:00
|
|
|
/* also declared in sys/stat.h */
|
2000-11-21 10:50:03 +08:00
|
|
|
#if defined __MSVCRT__
|
2007-06-23 15:34:16 +08:00
|
|
|
_CRTIMP int __cdecl __MINGW_NOTHROW _wstat (const wchar_t*, struct _stat*);
|
|
|
|
_CRTIMP int __cdecl __MINGW_NOTHROW _wstati64 (const wchar_t*, struct _stati64*);
|
2004-03-26 19:30:24 +08:00
|
|
|
#if __MSVCRT_VERSION__ >= 0x0601
|
2007-06-23 15:34:16 +08:00
|
|
|
_CRTIMP int __cdecl __MINGW_NOTHROW _wstat64 (const wchar_t*, struct __stat64*);
|
2004-03-26 19:30:24 +08:00
|
|
|
#endif /* __MSVCRT_VERSION__ >= 0x0601 */
|
2000-11-21 10:50:03 +08:00
|
|
|
#endif /* __MSVCRT__ */
|
2000-02-18 03:38:33 +08:00
|
|
|
#define _WSTAT_DEFINED
|
2000-11-21 10:50:03 +08:00
|
|
|
#endif /* ! _WSTAT_DEFIND */
|
2000-02-18 03:38:33 +08:00
|
|
|
|
2000-11-21 10:50:03 +08:00
|
|
|
#ifndef _WLOCALE_DEFINED /* also declared in locale.h */
|
2007-06-23 15:34:16 +08:00
|
|
|
_CRTIMP wchar_t* __cdecl __MINGW_NOTHROW _wsetlocale (int, const wchar_t*);
|
2000-11-21 10:50:03 +08:00
|
|
|
#define _WLOCALE_DEFINED
|
|
|
|
#endif
|
|
|
|
|
2007-10-04 02:55:56 +08:00
|
|
|
#ifndef _WPROCESS_DEFINED /* also declared in process.h */
|
2008-04-25 Danny Smith <dannysmith@users.sourceforge.net>
* include/process.h: Include stdint.h for intptr_t definition.
(_execl, _execle, _execlp, _execlpe, _execv, _execve, _execvp, _execvpe,
_spawnl, _spawnle, _spawnlp, _spawnlpe, _spawnv, _spawnve, _spawnvp,
_spawnvpe): Return intptr_t.
(execl, execle, execlp, execlpe, execv, execve, execvp, execvpe, spawnl,
spawnle, spawnlp, spawnlpe, spawnv, spawnve, spawnvp, spawnvpe): Return
intptr_t.
[!_WPROCESS_DEFINED]: Include stdint.h for intptr_t definition.
(_wexecl, _wexecle, _wexeclp, _wexeclpe, _wexecv, _wexecve, _wexecvp,
_wexecvpe, _wspawnl, _wspawnle, _wspawnlp, _wspawnlpe, _wspawnv, _wspawnve,
_wspawnvp, _wspawnvpe): Return intptr_t.
2008-04-26 08:24:19 +08:00
|
|
|
#include <stdint.h> /* For intptr_t. */
|
|
|
|
_CRTIMP intptr_t __cdecl __MINGW_NOTHROW _wexecl (const wchar_t*, const wchar_t*, ...);
|
|
|
|
_CRTIMP intptr_t __cdecl __MINGW_NOTHROW _wexecle (const wchar_t*, const wchar_t*, ...);
|
|
|
|
_CRTIMP intptr_t __cdecl __MINGW_NOTHROW _wexeclp (const wchar_t*, const wchar_t*, ...);
|
|
|
|
_CRTIMP intptr_t __cdecl __MINGW_NOTHROW _wexeclpe (const wchar_t*, const wchar_t*, ...);
|
|
|
|
_CRTIMP intptr_t __cdecl __MINGW_NOTHROW _wexecv (const wchar_t*, const wchar_t* const*);
|
|
|
|
_CRTIMP intptr_t __cdecl __MINGW_NOTHROW _wexecve (const wchar_t*, const wchar_t* const*, const wchar_t* const*);
|
|
|
|
_CRTIMP intptr_t __cdecl __MINGW_NOTHROW _wexecvp (const wchar_t*, const wchar_t* const*);
|
|
|
|
_CRTIMP intptr_t __cdecl __MINGW_NOTHROW _wexecvpe (const wchar_t*, const wchar_t* const*, const wchar_t* const*);
|
|
|
|
|
|
|
|
_CRTIMP intptr_t __cdecl __MINGW_NOTHROW _wspawnl (int, const wchar_t*, const wchar_t*, ...);
|
|
|
|
_CRTIMP intptr_t __cdecl __MINGW_NOTHROW _wspawnle (int, const wchar_t*, const wchar_t*, ...);
|
|
|
|
_CRTIMP intptr_t __cdecl __MINGW_NOTHROW _wspawnlp (int, const wchar_t*, const wchar_t*, ...);
|
|
|
|
_CRTIMP intptr_t __cdecl __MINGW_NOTHROW _wspawnlpe (int, const wchar_t*, const wchar_t*, ...);
|
|
|
|
_CRTIMP intptr_t __cdecl __MINGW_NOTHROW _wspawnv (int, const wchar_t*, const wchar_t* const*);
|
|
|
|
_CRTIMP intptr_t __cdecl __MINGW_NOTHROW _wspawnve (int, const wchar_t*, const wchar_t* const*, const wchar_t* const*);
|
|
|
|
_CRTIMP intptr_t __cdecl __MINGW_NOTHROW _wspawnvp (int, const wchar_t*, const wchar_t* const*);
|
|
|
|
_CRTIMP intptr_t __cdecl __MINGW_NOTHROW _wspawnvpe (int, const wchar_t*, const wchar_t* const*, const wchar_t* const*);
|
2007-10-04 02:55:56 +08:00
|
|
|
|
|
|
|
#define _WPROCESS_DEFINED
|
|
|
|
#endif
|
2008-04-25 Danny Smith <dannysmith@users.sourceforge.net>
* include/process.h: Include stdint.h for intptr_t definition.
(_execl, _execle, _execlp, _execlpe, _execv, _execve, _execvp, _execvpe,
_spawnl, _spawnle, _spawnlp, _spawnlpe, _spawnv, _spawnve, _spawnvp,
_spawnvpe): Return intptr_t.
(execl, execle, execlp, execlpe, execv, execve, execvp, execvpe, spawnl,
spawnle, spawnlp, spawnlpe, spawnv, spawnve, spawnvp, spawnvpe): Return
intptr_t.
[!_WPROCESS_DEFINED]: Include stdint.h for intptr_t definition.
(_wexecl, _wexecle, _wexeclp, _wexeclpe, _wexecv, _wexecve, _wexecvp,
_wexecvpe, _wspawnl, _wspawnle, _wspawnlp, _wspawnlpe, _wspawnv, _wspawnve,
_wspawnvp, _wspawnvpe): Return intptr_t.
2008-04-26 08:24:19 +08:00
|
|
|
#endif /* not __STRICT_ANSI__ */
|
2007-10-04 02:55:56 +08:00
|
|
|
|
2000-11-21 10:50:03 +08:00
|
|
|
#ifdef __cplusplus
|
|
|
|
} /* end of extern "C" */
|
2000-02-18 03:38:33 +08:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif /* Not RC_INVOKED */
|
|
|
|
|
|
|
|
#endif /* not _WCHAR_H_ */
|
|
|
|
|