1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-24 00:45:52 +00:00

Fix the build with newish GCC

Reported by:	pointyhat (logs)
This commit is contained in:
Alexey Dokuchaev 2007-06-18 18:44:31 +00:00
parent 8ec24df1c4
commit 87a9094432
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=193821

View File

@ -0,0 +1,27 @@
--- vertex/disk.cpp.orig Mon Nov 1 12:34:51 2004
+++ vertex/disk.cpp Tue Jun 19 01:39:05 2007
@@ -112,11 +112,7 @@
if(strptr == NULL)
{
/* No drive notation, check if first char is a '\\' */
-#if defined(__cplusplus) || defined(c_plusplus)
while(ISBLANK(*path))
-#else
- while(ISBLANK((int)(*path)))
-#endif
path++;
return(*path == '\\');
@@ -130,12 +126,7 @@
if(path == NULL)
return(0);
- // Dan S: typecast is due to const.
-#if defined(__cplusplus) || defined(c_plusplus)
- while(ISBLANK(reinterpret_cast<char>(*path)))
-#else
while(ISBLANK(*path))
-#endif
path++;
return(*path == DIR_DELIMINATOR);