Uploaded image for project: 'MariaDB Connector/C'
  1. MariaDB Connector/C
  2. CONC-288

Renaming the "rest" macro in ma_list.h and my_list.h to "list_rest"

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Minor
    • Resolution: Fixed
    • 3.0.2
    • 3.0.3
    • None
    • RedHat 7.3 with MariaDB-devel-10.2.9-1.el7.centos.x86_64 package from the MariaDB yum repository

    Description

      Hi All,

      I've been migrating a cross-platform C++ code-base (Intel/SPARC, Solaris/RedHat/Ubuntu) from MySQL to MariaDB.

      Problem I faced is that ma_list.h file (included by mysql.h) has a macro named rest (we don't use it). Issue for us is that this is a very common word and in our case it clashes with boost::spirit headers.

      Workaround for us is to just #undef rest after including mysql.h .

      I checked in MySQL connector as well as the MariaDB connector on Solaris Intel (10.1.22-MariaDB tarball) and the macro there is named list_rest . Looking at other list macros, they are all named list_ .

      Could you please consider renaming it back to list_rest to maintain MySQL compatibility?

      BR,
      Petar

      Attachments

        Activity

          People

            georg Georg Richter
            petarivanov Petar Ivanov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.