added _MAX_PATH and cousins as defined in wine

svn path=/trunk/; revision=5512
This commit is contained in:
Royce Mitchell III 2003-08-10 23:55:18 +00:00
parent 34572eba83
commit ccf732d210

View file

@ -18,9 +18,9 @@
* DISCLAIMED. This includes but is not limited to warranties of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
*
* $Revision: 1.5 $
* $Author: robd $
* $Date: 2002/11/24 18:06:00 $
* $Revision: 1.6 $
* $Author: royce $
* $Date: 2003/08/10 23:55:18 $
*
*/
/* Appropriated for Reactos Crtdll by Ariadne */
@ -41,6 +41,14 @@
*/
#define RAND_MAX 0x7FFF
#ifndef _MAX_PATH
#define _MAX_DRIVE 3
#define _MAX_FNAME 256
#define _MAX_DIR _MAX_FNAME
#define _MAX_EXT _MAX_FNAME
#define _MAX_PATH 260
#endif
/*
* These values may be used as exit status codes.
*/
@ -163,6 +171,7 @@ void _exit(int nStatus) _ATTRIB_NORETURN;
int _putenv(const char *val);
void _searchenv(const char *file, const char *var, char *path);
void _splitpath(const char *path, char *drive, char *dir, char *fname, char *ext);
void _wsplitpath(const wchar_t* path, wchar_t* drive, wchar_t* dir, wchar_t* fname, wchar_t* ext);
char* _itoa(int nValue, char* sz, int nRadix);
char* _ltoa(long lnValue, char* sz, int nRadix);
@ -221,6 +230,16 @@ unsigned long _lrotr(unsigned long value, int shift);
*/
#undef _ATTRIB_NORETURN
#ifndef _DISABLE_TIDENTS
#ifdef UNICODE
#define _tsplitpath _wsplitpath
#define _tmakepath _wmakepath
#else
#define _tsplitpath _splitpath
#define _tmakepath _makepath
#endif
#endif _DISABLE_TIDENTS
#ifdef __cplusplus
}
#endif