#include <stdlib.h>
#include <stdio.h>
+#ifndef WIN32
#include <unistd.h>
+#endif
+#include <string.h>
#include <memory.h>
#include "../gfxdevice.h"
internal_t*i = (internal_t*)dev->internal;
}
-void file_drawlink(struct _gfxdevice*dev, gfxline_t*line, char*action)
+void file_drawlink(struct _gfxdevice*dev, gfxline_t*line, const char*action)
{
internal_t*i = (internal_t*)dev->internal;
fprintf(i->fi, "drawlink %s\n", action);
free(i->filename);i->filename = 0;
}
-int fileresult_save(struct _gfxresult*gfx, char*filename)
+int fileresult_save(struct _gfxresult*gfx, const char*filename)
{
gfxresult_internal_t*i = (gfxresult_internal_t*)gfx->internal;
FILE*fi,*fo;
return 0;
}
-void* fileresult_get(struct _gfxresult*gfx, char*name)
+void* fileresult_get(struct _gfxresult*gfx, const char*name)
{
return 0;
}