qemacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemacs-devel] Build broken on Haiku


From: Charles Gordon
Subject: Re: [Qemacs-devel] Build broken on Haiku
Date: Wed, 16 Sep 2015 23:09:07 +0200

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 <address@hidden> 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
> address@hidden
> https://lists.nongnu.org/mailman/listinfo/qemacs-devel




reply via email to

[Prev in Thread] Current Thread [Next in Thread]