2012/2/29 Ananta Palani <[email protected]>: > Hi Jarosław, > > I was trying to build a component of boost using MSVC 2010 that used ctype.h > (really, <cctype>) and had a problem where it said that isspace() was not a > function in namespace std. So I looked and found that there is what looks > like an attempt to replace isspace in include/msvc/ctype.h. You can see the > file here: > > > http://quickgit.kde.org/index.php?p=kdewin.git&a=history&h=4a52e928b1b3b3d6a08fafdb462ad55647c6b99e&f=include%2Fmsvc%2Fctype.h > > Why is this special KDE_isspace() necessary? If I remove the ctype.h file, > then I can build successfully. Is this file no longer necessary?
Hi Ananta, Thanks for asking. KDE_* functions are KDE replacements added this way to avoid overriding original functions. If you build boost, which is non-kde software, right? - includes list do not need to contain include/msvc dir. Just do not use any KDEWIN macros in your buildsystem. (If I understand your case correctly) Alternatively, a workaround is to define KDEWIN_CTYPE_H macro in your buildsystem - then code from include/msvc/ctype.h will not be used. -- regards / pozdrawiam, Jaroslaw Staniek http://www.linkedin.com/in/jstaniek Kexi & Calligra (kexi-project.org, identi.ca/kexi, calligra-suite.org) KDE Software Development Platform on MS Windows (windows.kde.org) _______________________________________________ Kde-windows mailing list [email protected] https://mail.kde.org/mailman/listinfo/kde-windows
