[kde-windows] [Bug 326398] Compilation of rasqal fails with error: redefinition of struct 'timezone'

dasaan.san at gmail.com dasaan.san at gmail.com
Tue Oct 22 16:17:25 UTC 2013


https://bugs.kde.org/show_bug.cgi?id=326398

--- Comment #2 from dasaan.san at gmail.com ---
I think I can see the problem, but I'm not so sure of the best way to fix it
without breaking something else.

rasqal_decimal.c pulls in win32_rasqal_config.h in line 29
rasqal_decimal.c then pulls in math.h in line 41

win32_rasqal_config.h, line 70:
#define round(x) floor(x+0.5)

math.h, line 719:
extern double __cdecl round (double);

some googling suggests that msvc is fine with this but mingw certainly isn't

As a test, commenting the define out got the compile to proceed even further.
This doesn't feel like the right solution as the define is there to fill in for
a missing math.h file but something needs to be put in place so that the two
don't clash.

It makes me wonder how msvc is actually dealing with the situation, is it
simply blocking the round macro from expanding out?

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the Kde-windows mailing list