diff options
author | danfe <danfe@FreeBSD.org> | 2007-06-19 02:44:31 +0800 |
---|---|---|
committer | danfe <danfe@FreeBSD.org> | 2007-06-19 02:44:31 +0800 |
commit | 421fe691d2d81e89d34ce145df0f2e8db2603128 (patch) | |
tree | bfecf70c553cd978d079c3b8b12febdeaeec418d /graphics | |
parent | 76f3a412530c456bc998244365c75ef14d4c9085 (diff) | |
download | freebsd-ports-gnome-421fe691d2d81e89d34ce145df0f2e8db2603128.tar.gz freebsd-ports-gnome-421fe691d2d81e89d34ce145df0f2e8db2603128.tar.zst freebsd-ports-gnome-421fe691d2d81e89d34ce145df0f2e8db2603128.zip |
Fix the build with newish GCC
Reported by: pointyhat (logs)
Diffstat (limited to 'graphics')
-rw-r--r-- | graphics/vertex/files/patch-disk.cpp | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/graphics/vertex/files/patch-disk.cpp b/graphics/vertex/files/patch-disk.cpp new file mode 100644 index 000000000000..43d55aa15a12 --- /dev/null +++ b/graphics/vertex/files/patch-disk.cpp @@ -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); |