[ https://issues.apache.org/jira/browse/XERCESC-2194?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17052442#comment-17052442 ]
Roger Leigh commented on XERCESC-2194: -------------------------------------- Looking at https://cmake.org/cmake/help/v3.16/module/CheckTypeSize.html I agree that HAVE_<TYPE> should be fine. However, I'm curious as to why the existing logic is not working for you. What is the value of SIZEOF_SSIZE_T if you print it out? Both "" and 0 should evaluate to false. That's my understanding of https://cmake.org/cmake/help/v3.0/command/if.html HAVE_<TYPE> was present back to CMake 3.0, so there are no compatibility concerns to switching over. If you want to open a PR, I'll be happy to test. > Including Xerces_autoconf_config.hpp on Windows fails due to undefined ssize_t > ------------------------------------------------------------------------------ > > Key: XERCESC-2194 > URL: https://issues.apache.org/jira/browse/XERCESC-2194 > Project: Xerces-C++ > Issue Type: Bug > Components: Build > Affects Versions: 3.2.2 > Reporter: Rasmus Thomsen > Assignee: Scott Cantor > Priority: Major > Fix For: 3.2.3 > > > When including Xerces_autoconf_config.hpp on Windows the following error > messages: > > {code:cpp} > error C4430: Fehlender Typspezifizierer - int wird angenommen. Hinweis: > "default-int" wird von C++ nicht unterstützt. > error C2146: Syntaxfehler: Fehlendes ";" vor Bezeichner "XMLSSize_t" > {code} > (Sorry that these are in German - they translate to "Missing type specifier - > assuming int" and "syntax error: missing ";" before identifier "XMLSSize_t") > Apparently ssize_t is a POSIX extension and as such isn't available in MSVC > (by default?) -- This message was sent by Atlassian Jira (v8.3.4#803005) --------------------------------------------------------------------- To unsubscribe, e-mail: c-dev-unsubscr...@xerces.apache.org For additional commands, e-mail: c-dev-h...@xerces.apache.org