[Linux] Allegro compilation issues

Discussion of development and patch submission.
Post Reply
User avatar
JohnElliott
Posts: 113
Joined: Sun 31 Jan, 2016 7:29 pm

[Linux] Allegro compilation issues

Post by JohnElliott »

I had a couple of issues compiling the current development tree on Linux, because of different function prototypes:

Code: Select all

void set_window_title(char *s); 
(ibm.h line 549): conflicts with Allegro's

Code: Select all

AL_INLINE(void, set_window_title, (AL_CONST char *name)
Adding 'const' to the prototype in src/ibm.h and src/win.c seems to fix that one.

Code: Select all

void hline(BITMAP *b, int x1, int y, int x2, uint32_t col);
(video.h line 95): conflicts with Allegro's

Code: Select all

AL_ALIAS_VOID_RET(hline(BITMAP *bmp, int x1, int y, int x2, int color)
Redeclaring the last parameter of hline() as int32_t fixes that one.

Linking doesn't work because Makefile.in needs updating -- running automake is sufficient.
User avatar
SarahWalker
Site Admin
Posts: 2054
Joined: Thu 24 Apr, 2014 4:18 pm

Re: [Linux] Allegro compilation issues

Post by SarahWalker »

Should be fixed now.
Post Reply