Uploaded image for project: 'XalanC'
  1. XalanC
  2. XALANC-708

Including XalanCAPI.hpp does not import Xerces typedef XMLch

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • CurrentCVS
    • None
    • XalanC
    • Use 'C' compiler with (__cplusplus) undefined and #include <xalanc/XalanTransformer/XalanCAPI.hpp>

    Description

      The #include <xalanc/Include/PlatformDefinitions.hpp> is invoked and fails to resolve the Xerces typedef XMLch.

      The following edit resolves the issue:

      — trunk/src/xalanc/Include/PlatformDefinitions.hpp 2011-04-25 14:11:27.000000000 -0700
      +++ PlatformDefinitions.hpp 2011-05-02 11:25:51.000000000 -0700
      @@ -14,13 +14,18 @@

      • WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
      • See the License for the specific language governing permissions and
      • limitations under the License.
        */
        +
        #if !defined(PLATFORMDEFINITIONS_HEADER_GUARD_1357924680)
        #define PLATFORMDEFINITIONS_HEADER_GUARD_1357924680

      #if defined(__cplusplus)
      -#include "xercesc/util/XercesDefs.hpp"
      +# include "xercesc/util/XercesDefs.hpp"
      +#else
      +/* Include autoconf to define XMLCh when XercesDefs is bypassed */
      +# include "xercesc/util/Xerces_autoconf_config.hpp"
      +# include "xercesc/util/XercesVersion.hpp"
      #endif

      #if defined(_MSC_VER)
      #include "VCPPDefinitions.hpp"

      Attachments

        1. my-jira-708.diff
          0.8 kB
          Steven J. Hathaway

        Activity

          People

            shathaway Steven J. Hathaway
            shathaway Steven J. Hathaway
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: