Commit 0e7dce55 authored by David Llewellyn-Jones's avatar David Llewellyn-Jones

Switched recall memory stored files to write using binary rather than text...

Switched recall memory stored files to write using binary rather than text mode. Fixes binary export bug on Windows.
parent 82b4370f
......@@ -240,7 +240,7 @@ int Memory_recclose (Recall * stream) {
// Save out the data if a filename was provided
if (stream->Store.psMemory->szFilename->len > 0) {
psFile = fopen (stream->Store.psMemory->szFilename->str, "w");
psFile = fopen (stream->Store.psMemory->szFilename->str, "wb");
if (psFile != NULL) {
fwrite (stream->Store.psMemory->pStore, 1, stream->Store.psMemory->uFilled, psFile);
nResult = fclose (psFile);
......
REM Add -mconsole to both gcc calls for console output
cd src
del *.o
gcc -DFUNCTYDIR=\"./assets\" -c -Wall -mwindows -mno-cygwin -mms-bitfields -I"%GTK_BASEPATH%\include\gtk-2.0" -I"%GTK_BASEPATH%\include\cairo" -I"%GTK_BASEPATH%\include\glib-2.0" -I"%GTK_BASEPATH%\include\pango-1.0" -I"%GTK_BASEPATH%\lib\gtk-2.0\include" -I"%GTK_BASEPATH%\lib\glib-2.0\include" -I"%GTK_BASEPATH%\include\atk-1.0" -I"%GTK_BASEPATH%\include" -I"%GTK_BASEPATH%\include\gtkglext-1.0" -I"%GTK_BASEPATH%\lib\gtkglext-1.0\include" -I"%GTK_BASEPATH%\include\gdk-pixbuf-2.0" -I"..\..\freeglut\include" -I"..\..\GLee" -I"..\..\Symbolic\src" -I"..\..\libzip\lib" *.c
gcc -DFUNCTYDIR=\"./assets\" -c -Wall -mwindows -mms-bitfields -I"%GTK_BASEPATH%\include\gtk-2.0" -I"%GTK_BASEPATH%\include\cairo" -I"%GTK_BASEPATH%\include\glib-2.0" -I"%GTK_BASEPATH%\include\pango-1.0" -I"%GTK_BASEPATH%\lib\gtk-2.0\include" -I"%GTK_BASEPATH%\lib\glib-2.0\include" -I"%GTK_BASEPATH%\include\atk-1.0" -I"%GTK_BASEPATH%\include" -I"%GTK_BASEPATH%\include\gtkglext-1.0" -I"%GTK_BASEPATH%\lib\gtkglext-1.0\include" -I"%GTK_BASEPATH%\include\gdk-pixbuf-2.0" -I"..\..\freeglut\include" -I"..\..\GLee" -I"..\..\Symbolic\src" -I"..\..\libzip\lib" *.c
dlltool --output-def functy.def functy.o
dlltool --dllname functy.exe --def functy.def --output-exp functy.exp
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment