Skip to content

Unable to compile under DOS since inclusion of mpqfs #8537

@Srandista

Description

@Srandista

Operating System

Other (please specify)

DevilutionX version

Other (please specify version number)

Describe

During the compilation of a code, where libmpq was replaced by mpqfs for DOS, I get following errors:

/home/srandista/Downloads/DevilutionX/build-dos/_deps/mpqfs-src/src/mpq_archive.c:391:20: error: implicit declaration of function 'fdopen'; did you mean 'fopen'? [-Wimplicit-function-declaration]
  391 |         FILE *fp = fdopen(fd, "rb");
      |                    ^~~~~~
      |                    fopen
/home/srandista/Downloads/DevilutionX/build-dos/_deps/mpqfs-src/src/mpq_archive.c:391:20: error: initialization of 'FILE *' from 'int' makes pointer from integer without a cast [-Wint-conversion]

Commit before library replacing (e6f958b) compiles just fine. Windows (even SDL1) builds are also unaffected.

To Reproduce

Build latest source code for DOS with commands provided in Build from Source article on wiki.

Expected Behavior

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions