From: Peter Johnson Date: Mon, 30 Jan 2006 06:58:19 +0000 (-0000) Subject: * coretype.h (yasm__splitpath): Add some detection logic to try to detect X-Git-Tag: v0.5.0rc1~27 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=24aabe16314960b0aa1026b598603c167232cee0;p=yasm * coretype.h (yasm__splitpath): Add some detection logic to try to detect DOS-style path handling. svn path=/trunk/yasm/; revision=1353 --- diff --git a/libyasm/coretype.h b/libyasm/coretype.h index c1394742..18279214 100644 --- a/libyasm/coretype.h +++ b/libyasm/coretype.h @@ -282,7 +282,13 @@ size_t yasm__splitpath_win(const char *path, /*@out@*/ const char **tail); * \param head (returned) directory * \return Length of head (directory). */ -#define yasm__splitpath(path, tail) yasm__splitpath_unix(path, tail) +# if defined (_WIN32) || defined (WIN32) || defined (__MSDOS__) || \ + defined (__DJGPP__) || defined (__OS2__) || defined (__CYGWIN__) || \ + defined (__CYGWIN32__) +# define yasm__splitpath(path, tail) yasm__splitpath_win(path, tail) +# else +# define yasm__splitpath(path, tail) yasm__splitpath_unix(path, tail) +# endif #endif /** strdup() implementation using yasm_xmalloc().