From 87a909443258e7e5db8af532e8d59ac972edf74b Mon Sep 17 00:00:00 2001 From: Alexey Dokuchaev Date: Mon, 18 Jun 2007 18:44:31 +0000 Subject: [PATCH] Fix the build with newish GCC Reported by: pointyhat (logs) --- graphics/vertex/files/patch-disk.cpp | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 graphics/vertex/files/patch-disk.cpp 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(*path))) +-#else + while(ISBLANK(*path)) +-#endif + path++; + + return(*path == DIR_DELIMINATOR);