Skip to content

Compile with VS 2008 problems: missing C99 support from MS #178

@CertHaramas

Description

@CertHaramas

Hello,
there is a (probably persistent) problem with compiling lfs.c with Visual Studio cl.exe: missing support for C99 - see the file attached.
There are two ways how to solve it:

  1. Make some minor corrections of the code (enclosing parts of the code into { ... } in most), or
  2. compile as C++ - but this requires some additional cast at a couple of places (void * -> char *) and adding external "C" somewhere, also lfs.c -> lfs.cpp or adding "/TP" option when to be compiled with MS cl.exe.

Cl~.txt

Would you accept the changes if I make them and pass the altered lfc.c here?

  • This would make the lfs more usable for those who use Visual Studio together with luarocks as a package manager...

Best regards,

Lukas

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