#include "liblangtag/langtag.h" messes with inline keyword

Issue #8 resolved
Former user created an issue

at least with liblangtag-0.5.4.tar.bz2 on some Linux:

$ cat test.c #include <stddef.h> #include <unistd.h> #include ".../include/liblangtag/langtag.h" #if defined inline #error #endif

$ gcc -c test.c test.c:5:2: error: #error #error ^

(also note the odd need to make size_t and ssize_t known prior to inclusion of langtag.h)

The problem is that lt-macros.h checks LT_HAVE_INLINE, which would be set in config.h, but which is not installed and not included from lt-macros.h.

Discovered when building LibreOffice, http://cgit.freedesktop.org/libreoffice/core/commit/?id=248fa06e017b30cd61e4900f1ec22805b5a5426c "Work around -Werror,-Wkeyword-macro."

Comments (3)

  1. Akira TAGOH repo owner

    Fix a build issue with inline keyword

    due to no definition for the sort of LT_HAVE_INLINE which is used in lt-macros.h (fixes issue#8)

    → <<cset 63a6d84492e9>>

  2. Log in to comment