update for HEAD-2003091401
[reactos.git] / include / msvcrt / stdlib.h
index a79ddd3..3693503 100644 (file)
  */
 #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