Merge pull request #1114 from oliverschmidt/master
Set Win32 file i/o to binary mode.
This commit is contained in:
commit
cb09689846
|
@ -36,6 +36,7 @@
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
#include <winsock2.h>
|
#include <winsock2.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
#include <fcntl.h>
|
||||||
|
|
||||||
#include "contiki-net.h"
|
#include "contiki-net.h"
|
||||||
|
|
||||||
|
@ -101,6 +102,8 @@ char **contiki_argv;
|
||||||
int
|
int
|
||||||
main(int argc, char **argv)
|
main(int argc, char **argv)
|
||||||
{
|
{
|
||||||
|
_set_fmode(O_BINARY);
|
||||||
|
|
||||||
contiki_argc = argc;
|
contiki_argc = argc;
|
||||||
contiki_argv = argv;
|
contiki_argv = argv;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue