4 #pragma warning( disable : 4007 4096 4018 4244 )
7 /* The embedded rndnpc.h defines boolean as 'unsigned char',
8 and we do not want that.
9 This should be safe as long as we don't use npc ourselves. */
10 #define boolean saved_boolean
20 # define GNUW32DLL KPSEDLL
22 # if defined(GNUW32_DLL) || defined(KPSE_DLL)
23 # if defined(MAKE_GNUW32_DLL) || defined(MAKE_KPSE_DLL)
24 # define GNUW32DLL __declspec( dllexport)
26 # define GNUW32DLL __declspec( dllimport)
37 #define MAXPATHLEN _MAX_PATH
44 /* On DOS, it's good to allow both \ and / between directories. */
46 #define IS_DIR_SEP(ch) ((ch) == '/' || (ch) == '\\')
49 #define IS_DEVICE_SEP(ch) ((ch) == ':')
51 #ifndef NAME_BEGINS_WITH_DEVICE
52 #define NAME_BEGINS_WITH_DEVICE(name) (*(name) && IS_DEVICE_SEP((name)[1]))
54 /* On win32, UNC names are authorized */
56 #define IS_UNC_NAME(name) (strlen(name)>=3 && IS_DIR_SEP(*name) \
57 && IS_DIR_SEP(*(name+1)) && isalnum(*(name+2)))
60 #define IS_UNC_NAME(name) \
61 (strlen(name)>=3 && IS_DIR_SEP(*name) \
62 && IS_DIR_SEP(*(name+1)) && isalnum(*(name+2)))
65 typedef struct volume_info_data {
66 struct volume_info_data * next;
68 /* time when info was obtained */
71 /* actual volume info */