Problem with isspace due to ctype.h
Jaroslaw Staniek
staniek at kde.org
Wed Feb 29 10:31:58 UTC 2012
2012/2/29 Ananta Palani <anantapalani at gmail.com>:
> 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)
More information about the Kde-windows
mailing list