Menu

#4 Patch; Visual C++ compilation support (command line nmake)

Unstable_(example)
open
nobody
None
5
2016-06-22
2016-06-22
No

The attached simple patches help compiling with Visual C++. I used the freebie "Visual Studio 2012 Express". In main.c: <dir.h> is neither available, nor needed. In output.c: reorder two lines, since declarations can appear only at the beginning of block (later MSVC's may have relaxed this, but it is nicer to keep code compatible with old ANSI C). Also added makefile.msv, which is compatible with the "nmake" that comes with Visual C++.

1 Attachments

Discussion

  • Erkki Ruohtula

    Erkki Ruohtula - 2016-06-22

    The makefile

     
  • Erkki Ruohtula

    Erkki Ruohtula - 2016-06-22

    output.c diff

     

Log in to post a comment.