Windows/Cygwin fixes and documentation

This commit is contained in:
Anthony Super 2017-10-18 08:28:14 +11:00
parent ce224eb58d
commit 1c1604fbcc
3 changed files with 23 additions and 1 deletions

2
.gitattributes vendored Normal file
View File

@ -0,0 +1,2 @@
# Ensure Windows Git clients maintain Unix line endings on checkout
* text eol=lf

View File

@ -66,6 +66,26 @@ found at:
You will need a Mac or a Mac emulator (with DiscCopy) to read that file.
### Windows Compilation using Cygwin
You can compile Retro68 on Windows using via a Cygwin terminal. When installing
Cygwin, select the following packages in the Cygwin Setup program (as per the dependencies
listed above):
- bison
- cmake
- gcc-core
- gcc-g++
- libboost-devel
- libgmp-devel
- libmpc-devel
- libmpfr-devel
- make
- zlib-devel
Additional dependencies will be automatically installed.
Note that compilation via Cygwin is around 3X slower than other platforms.
### Compiling Retro68

View File

@ -145,7 +145,7 @@ extern int fgetc_unlocked (FILE *);
extern char *fgets_unlocked (char *, int, FILE *);
# endif
# endif
# ifdef HAVE_FPUTS_UNLOCKED
# if defined (HAVE_FPUTS_UNLOCKED) && !defined (__CYGWIN__)
# undef fputs
# define fputs(String, Stream) fputs_unlocked (String, Stream)
# if defined (HAVE_DECL_FPUTS_UNLOCKED) && !HAVE_DECL_FPUTS_UNLOCKED