2019-03-15 13:06:56 +01:00
|
|
|
# Building RETRO on Windows
|
|
|
|
|
2019-03-18 21:55:32 +01:00
|
|
|
It is possible to build RETRO on Windows, though a few of the
|
|
|
|
extensions are not supported:
|
2019-03-18 20:44:09 +01:00
|
|
|
|
2019-03-18 21:55:32 +01:00
|
|
|
- no `unix:` words
|
|
|
|
- no `gopher:` words
|
2019-03-14 21:43:27 +01:00
|
|
|
|
2019-03-18 21:55:32 +01:00
|
|
|
## Process
|
2019-03-14 21:43:27 +01:00
|
|
|
|
2019-03-19 13:36:16 +01:00
|
|
|
This is currently more difficult than on a Unix host. If you have
|
|
|
|
Windows 10 and WSL, it may be better to build under that (using
|
|
|
|
the Linux instructions).
|
|
|
|
|
2019-03-18 21:55:32 +01:00
|
|
|
### Setup TCC
|
2019-03-14 21:43:27 +01:00
|
|
|
|
2019-03-18 21:55:32 +01:00
|
|
|
Go to http://download.savannah.gnu.org/releases/tinycc/
|
|
|
|
|
|
|
|
Download the *winapi-full* and *tcc-xxxx-bin* packages for your
|
|
|
|
system. Decompress them, copy the headers from the winapi
|
|
|
|
package into the tcc directory.
|
|
|
|
|
|
|
|
### Prepare Source
|
2019-03-14 21:43:27 +01:00
|
|
|
|
2019-03-19 13:36:16 +01:00
|
|
|
You'll need to comment out (or remove) some things before RETRO
|
|
|
|
will build.
|
|
|
|
|
|
|
|
In *rre.c*:
|
|
|
|
|
|
|
|
- remove includes for unistd.h, sys/sockets.h, netinet/in.h
|
|
|
|
netdb.h, errno.h, sys/wait.h, signal.h
|
|
|
|
- remove the #define USE_TERMIOS line
|
|
|
|
- change the #define NUM_DEVICES to 6
|
|
|
|
- remove io_unix_handler and io_gopher_handler from IO_deviceHandlers
|
|
|
|
- remove io_unix_query and io_gopher_query from IO_queryHandlers
|
|
|
|
|
|
|
|
In *image-functions.c*:
|
|
|
|
|
|
|
|
- remove includes for unistd.h
|
|
|
|
|
|
|
|
In *image-functions.h*:
|
|
|
|
|
|
|
|
- remove includes for unistd.h
|
|
|
|
|
2019-04-24 17:00:55 +02:00
|
|
|
In *io\filesystem.c*:
|
2019-03-19 13:36:16 +01:00
|
|
|
|
|
|
|
- remove includes for unistd.h
|
|
|
|
|
2019-04-24 17:00:55 +02:00
|
|
|
In *io\floatingpoint.c*:
|
2019-03-14 21:43:27 +01:00
|
|
|
|
2019-03-19 13:36:16 +01:00
|
|
|
- remove includes for unistd.h
|
2019-03-14 21:43:27 +01:00
|
|
|
|
2019-03-19 13:36:16 +01:00
|
|
|
### Build
|
2019-03-14 21:43:27 +01:00
|
|
|
|
2019-04-24 17:00:55 +02:00
|
|
|
\path\to\tcc rre.c image-functions.c io\filesystem.c io\floatingpoint.c -o retro.exe
|