Skip to content
  • Martin Vidner's avatar
    Fix rebuilding docs, by hiding __attribute__((...)) behind a macro. · 43a8836c
    Martin Vidner authored and Nick Wellnhofer's avatar Nick Wellnhofer committed
    When enabled via `./configure --enable-rebuild-docs`,
    `make -C doc libxml2-api.xml` will invoke apibuild.py
    to rebuild libxml2-api.xml from the sources.
    But the code added in
    9fa3200c made it error out with
    
    ```
    Parsing ../parser.c
    Parse Error: parsing type : expecting a name
    ('Got token ', ('sep', '('))
    ('Last token: ', ('sep', '('))
    ('Token queue: ', [('name', 'destructor'), ('sep', ')'), ('sep', ')')])
    ('Line 14689 end: ', '')
    ```
    43a8836c