]> granicus.if.org Git - yasm/commitdiff
* coretype.h (yasm__splitpath): Add some detection logic to try to detect
authorPeter Johnson <peter@tortall.net>
Mon, 30 Jan 2006 06:58:19 +0000 (06:58 -0000)
committerPeter Johnson <peter@tortall.net>
Mon, 30 Jan 2006 06:58:19 +0000 (06:58 -0000)
DOS-style path handling.

svn path=/trunk/yasm/; revision=1353

libyasm/coretype.h

index c1394742019a6b7e206a722e1af42b50e57c9477..182792147472d93252d501632d1c585b1a740e35 100644 (file)
@@ -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().