Opened 15 years ago
Closed 15 years ago
#6837 closed defect (fixed)
MythArchive fails to compile after [21213] (at least on windows)
Reported by: | Owned by: | Isaac Richards | |
---|---|---|---|
Priority: | minor | Milestone: | 0.22 |
Component: | MythTV - General | Version: | head |
Severity: | medium | Keywords: | |
Cc: | Ticket locked: | no |
Description
It seems that after [21213] MythArchive? fails to compile with the following error (at least on Windows):
pxsup2dast.c: In function 'pxsubtitle': pxsup2dast.c:810: error: 'uint' undeclared (first use in this function) pxsup2dast.c:810: error: (Each undeclared identifier is reported only once pxsup2dast.c:810: error: for each function it appears in.) pxsup2dast.c:810: error: expected ';' before 'len' pxsup2dast.c:811: error: 'len' undeclared (first use in this function) pxsup2dast.c:830: error: expected ';' before 'len' make[2]: * [pxsup2dast.o] Error 1 make[2]: Leaving directory `/u/mythtv/mythplugins/mytharchive/mytharchivehelper'
This is because in this changeset on a few places int was replaced with uint to suppress messages on unsigned integer use. However C does not support the uint type AFAIK, we can do two things:
- typedef unsigned int uint;
- replace the occurrences of
uint
with
unsigned int
The latter would be better I think as it saves us some compiler specific directives.
(In [21256]) Use size_t instead of uint. Fixes #6837.