News:

Simutrans.com Portal
Our Simutrans site. You can find everything about Simutrans from here.

Build error under Haiku due to missing ',' in simsys.cc (line 407)

Started by taos, January 04, 2019, 06:12:28 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

taos

Some time between 120.2.2 and 120.3 (commit 69ee10ff4bf1643562000a97b6becb47c1f79175 in github), compiling Simutrans under Haiku stopped working. Today I (finally) had some time to look for the reason and it seems it's due to a missing ',' at the end of a line inside a Haiku specific conditional #ifdef statement (probably the reason no other operating system is affected). It's in line 407 of simsys.cc, instead of

#elif defined __HAIKU__
"/boot/system/non-packaged/data/fonts/",
"/boot/home/config/non-packaged/data/fonts/",
"~/config/non-packaged/data/fonts/",
"/boot/system/data/fonts/ttfonts/"

it should be

#elif defined __HAIKU__
"/boot/system/non-packaged/data/fonts/",
"/boot/home/config/non-packaged/data/fonts/",
"~/config/non-packaged/data/fonts/",
"/boot/system/data/fonts/ttfonts/",


Do you need me to attach a patch?

Dwachs

Parsley, sage, rosemary, and maggikraut.

taos

Thanks! BTW, there's another ',' missing in the following linux/BSD/unix section (line 412) which probably didn't negatively affect building on linux because it's not the last one.

Dwachs

Parsley, sage, rosemary, and maggikraut.