From ccf732d210fb7c7ce562390e28e5eaf2ee09f3f1 Mon Sep 17 00:00:00 2001 From: Royce Mitchell III Date: Sun, 10 Aug 2003 23:55:18 +0000 Subject: [PATCH] added _MAX_PATH and cousins as defined in wine svn path=/trunk/; revision=5512 --- reactos/include/msvcrt/stdlib.h | 25 ++++++++++++++++++++++--- 1 file changed, 22 insertions(+), 3 deletions(-) diff --git a/reactos/include/msvcrt/stdlib.h b/reactos/include/msvcrt/stdlib.h index 366da9577e3..038b4f6608a 100644 --- a/reactos/include/msvcrt/stdlib.h +++ b/reactos/include/msvcrt/stdlib.h @@ -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