4 #pragma warning( disable : 4007 4096 4018 4244 )
15 # define GNUW32DLL KPSEDLL
17 # if defined(GNUW32_DLL) || defined(KPSE_DLL)
18 # if defined(MAKE_GNUW32_DLL) || defined(MAKE_KPSE_DLL)
19 # define GNUW32DLL __declspec( dllexport)
21 # define GNUW32DLL __declspec( dllimport)
32 #define MAXPATHLEN _MAX_PATH
39 /* On DOS, it's good to allow both \ and / between directories. */
41 #define IS_DIR_SEP(ch) ((ch) == '/' || (ch) == '\\')
44 #define IS_DEVICE_SEP(ch) ((ch) == ':')
46 #ifndef NAME_BEGINS_WITH_DEVICE
47 #define NAME_BEGINS_WITH_DEVICE(name) (*(name) && IS_DEVICE_SEP((name)[1]))
49 /* On win32, UNC names are authorized */
51 #define IS_UNC_NAME(name) (strlen(name)>=3 && IS_DIR_SEP(*name) \
52 && IS_DIR_SEP(*(name+1)) && isalnum(*(name+2)))
55 #define IS_UNC_NAME(name) \
56 (strlen(name)>=3 && IS_DIR_SEP(*name) \
57 && IS_DIR_SEP(*(name+1)) && isalnum(*(name+2)))
60 typedef struct volume_info_data {
61 struct volume_info_data * next;
63 /* time when info was obtained */
66 /* actual volume info */