- Timestamp:
- Sep 1, 2010, 3:47:00 PM (15 years ago)
- Location:
- trunk/src/msvcrt
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/msvcrt/dir.c
r21398 r21439 63 63 #include <stdlib.h> 64 64 65 #ifdef __EMX__ 66 // restore the EMX version of _fullpath 67 #undef _fullpath 68 #endif 69 65 70 #endif /* !__MINIVCRT__ */ 66 71 … … 769 774 } 770 775 776 #else /* !__MINIVCRT__ */ 777 778 #ifdef __EMX__ 779 780 // The EMX version of _fullpath() returns int instead of char*, 781 // provide a wrapper 782 char *MSVCRT__fullpath(char * absPath, const char* relPath, unsigned int size) 783 { 784 return _fullpath(absPath, relPath, size) == 0 ? absPath : NULL; 785 } 786 787 #endif /* EMX */ 788 771 789 #endif /* !__MINIVCRT__ */ 772 790 … … 885 903 MSVCRT_wchar_t* _wfullpath(MSVCRT_wchar_t* absPath,const MSVCRT_wchar_t* relPath,MSVCRT(size_t) size) 886 904 { 887 MSVCRT_wchar_t ch;888 905 char asciiabsPath[280], asciirelPath[280]; 889 906 -
trunk/src/msvcrt/minivcrt_internal.h
r21398 r21439 24 24 #define MSVCRT__errno _errno 25 25 #define MSVCRT__getdrive _getdrive 26 #ifndef __EMX__ 26 27 #define MSVCRT__fullpath _fullpath 28 #endif 27 29 #define MSVCRT_malloc malloc 28 30
Note:
See TracChangeset
for help on using the changeset viewer.