Opened 12 years ago

Closed 12 years ago

#6837 closed defect (fixed)

MythArchive fails to compile after [21213] (at least on windows)

Reported by: Jonathan Martens <jonathan@…> Owned by: Isaac Richards
Priority: minor Milestone: 0.22
Component: MythTV - General Version: head
Severity: medium Keywords:
Cc: Ticket locked: no


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:

  1. typedef unsigned int uint;
  1. replace the occurrences of



unsigned int

The latter would be better I think as it saves us some compiler specific directives.

Change History (1)

comment:1 Changed 12 years ago by paulh

Resolution: fixed
Status: newclosed

(In [21256]) Use size_t instead of uint. Fixes #6837.

Note: See TracTickets for help on using tickets.