1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- #ifndef _TOOLKIT_PATH_H_
- #define _TOOLKIT_PATH_H_
- #define SLASH '/'
- #define BACK_SLASH '\\'
- #define MB_SLASH_STR "/"
- #define MB_BACK_SLASH_STR "\\"
- #define W_SLASH_STR L"/"
- #define W_BACK_SLASH_STR L"\\"
- #if defined(UNICODE) || defined(_UNICODE)
- #define SLASH_STR W_SLASH_STR
- #define BACK_SLASH_STR W_BACK_SLASH_STR
- #else
- #define SLASH_STR MB_SLASH_STR
- #define BACK_SLASH_STR MB_BACK_SLASH_STR
- #endif
- #ifdef _WIN32
- #define SPLIT_SLASH BACK_SLASH
- #define SPLIT_SLASH_STR BACK_SLASH_STR
- #define MB_SPLIT_SLASH_STR MB_BACK_SLASH_STR
- #define W_SPLIT_SLASH_STR W_BACK_SLASH_STR
- #define LINE_BREAK_STR "\r\n"
- #else
- #define SPLIT_SLASH SLASH
- #define SPLIT_SLASH_STR SLASH_STR
- #define MB_SPLIT_SLASH_STR MB_SLASH_STR
- #define W_SPLIT_SLASH_STR W_SLASH_STR
- #define LINE_BREAK_STR "\n"
- #endif
- #ifndef _WIN32
- #ifndef _MAX_DRIVE
- #ifdef PATH_MAX
- #define _MAX_PATH PATH_MAX
- #else
- #define _MAX_PATH 260
- #endif //PATH_MAX
- #define _MAX_DRIVE 32 /*default is /opt at linux*/
- #define _MAX_DIR 256
- #define _MAX_FNAME 256
- #define _MAX_EXT 256
- #endif
- #endif //NOT _WIN32
- #endif //_TOOLKIT_PATH_H_
|