My bad.

I added the const to try and make sure the QECharset internals were only 
modified in very specific places.
It conflicts with the implicit type definition in C++ where `struct QECharset` 
also defines the type `QECharset`.

I cannot compile for haiku on my current config, can you try and modify the 
typedef in C++ mode:

#if defined(__cplusplus)
typedef struct QECharset QECharset;
#else
typedef const struct QECharset QECharset;
#endif

If this works, I will commit it, otherwise, I shall remove this kludgey hack.
Thanks for reporting.

Chqrlie.

> On 16 sept. 2015, at 17:29, François Revol <re...@free.fr> wrote:
> 
> Btw, it seems g++ doesn't like the const in the QECharset typedef:
> 

> CPP -c haiku.cpp
> In file included from /work/qemacs/qemacs/haiku.cpp:22:
> /work/qemacs/qemacs/qe.h:542: conflicting types for `typedef const
> struct QECharset QECharset'
> /work/qemacs/qemacs/qe.h:542: previous declaration as `struct QECharset'
> /work/qemacs/qemacs/qe.h:568: using typedef-name `QECharset' after `struct'
> /work/qemacs/qemacs/qe.h:570: using typedef-name `QECharset' after `struct'
> /work/qemacs/qemacs/qe.h:571: using typedef-name `QECharset' after `struct'
> /work/qemacs/qemacs/qe.h:572: using typedef-name `QECharset' after `struct'
> /work/qemacs/qemacs/qe.h:573: using typedef-name `QECharset' after `struct'
> /work/qemacs/qemacs/qe.h:574: using typedef-name `QECharset' after `struct'
> /work/qemacs/qemacs/qe.h:575: using typedef-name `QECharset' after `struct'
> /work/qemacs/qemacs/qe.h:576: using typedef-name `QECharset' after `struct'
> /work/qemacs/qemacs/qe.h:605: using typedef-name `QECharset' after `struct'
> /work/qemacs/qemacs/qe.h: In function `int eb_at_bol(EditBuffer *, int)':
> /work/qemacs/qemacs/qe.h:1004: confused by earlier errors, bailing out
> make: *** [.objs/haiku.o] Error 1
> 
> I'm not sure how to fix that...
> 
> François.
> 
> _______________________________________________
> Qemacs-devel mailing list
> Qemacs-devel@nongnu.org
> https://lists.nongnu.org/mailman/listinfo/qemacs-devel


_______________________________________________
Qemacs-devel mailing list
Qemacs-devel@nongnu.org
https://lists.nongnu.org/mailman/listinfo/qemacs-devel

Reply via email to