3 # Define some macros required for proper operation of code in lib/*.c
4 # on MSDOS/Windows systems.
10 # FIXME: this is incomplete. Add a compile-test that does something
12 #if defined _WIN32 || defined __WIN32__ || defined __MSDOS__
14 AH_VERBATIM(FILESYSTEM_PREFIX_LEN,
15 [#if FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX
16 # define FILESYSTEM_PREFIX_LEN(Filename) \
17 ((Filename)[0] && (Filename)[1] == ':' ? 2 : 0)
19 # define FILESYSTEM_PREFIX_LEN(Filename) 0
22 AC_DEFINE([FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX],
23 [Define on systems for which file names may have a so-called
24 `drive letter' prefix, define this to compute the length of that
25 prefix, including the colon.])
28 [#if FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR
29 # define ISSLASH(C) ((C) == '/' || (C) == '\\\\')
31 # define ISSLASH(C) ((C) == '/')
34 AC_DEFINE([FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR],
35 [Define if the backslash character may also serve as a file name
36 component separator.])