* hb_mkdir ************************************************************************ * Wrapper to the real mkdir, needed only because it doesn't take a * second argument on Win32. Grrr. ***********************************************************************/
| 930 | * second argument on Win32. Grrr. |
| 931 | ***********************************************************************/ |
| 932 | int hb_mkdir(const char * path) |
| 933 | { |
| 934 | #ifdef SYS_MINGW |
| 935 | wchar_t path_utf16[MAX_PATH]; |
| 936 | if (!MultiByteToWideChar(CP_UTF8, 0, path, -1, path_utf16, MAX_PATH)) |
| 937 | return -1; |
| 938 | return _wmkdir(path_utf16); |
| 939 | #else |
| 940 | return mkdir(path, 0755); |
| 941 | #endif |
| 942 | } |
| 943 | |
| 944 | /************************************************************************ |
| 945 | * Portable thread implementation |
no outgoing calls
no test coverage detected