Set Win32 file i/o to binary mode.

This is i.e. necessary to have the file based webserver-example successfully read 'contiki.gif'.
ico
Oliver Schmidt 2015-06-14 17:48:36 +02:00
parent 35becbbcb5
commit 74db518846
1 changed files with 3 additions and 0 deletions

View File

@ -36,6 +36,7 @@
#include <windows.h>
#include <winsock2.h>
#include <stdio.h>
#include <fcntl.h>
#include "contiki-net.h"
@ -101,6 +102,8 @@ char **contiki_argv;
int
main(int argc, char **argv)
{
_set_fmode(O_BINARY);
contiki_argc = argc;
contiki_argv = argv;