Commit 07415184 authored by Niels Möller's avatar Niels Möller

On windows, include fcntl.h, before using _setmode.

parent 7400439c
......@@ -5,7 +5,8 @@
Needed for cross-compiling with --host=i586-mingw32msvc.
* examples/base16dec.c: Don't #include files using <nettle/...>,
we don't want to pick up installed versions.
we don't want to pick up installed versions. On windows, include
<fcntl.h>, needed for _setmode.
* examples/base16enc.c: Likewise.
* examples/base64dec.c: Likewise.
* examples/base64enc.c: Likewise
......
......@@ -26,6 +26,9 @@
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#ifdef WIN32
#include <fcntl.h>
#endif
#include "base16.h"
......
......@@ -26,6 +26,9 @@
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#ifdef WIN32
#include <fcntl.h>
#endif
#include "base16.h"
......
......@@ -26,6 +26,9 @@
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#ifdef WIN32
#include <fcntl.h>
#endif
#include "base64.h"
......
......@@ -26,6 +26,9 @@
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#ifdef WIN32
#include <fcntl.h>
#endif
#include "base64.h"
......
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