Fix: isatty is called _isatty on windows

This commit is contained in:
Bernhard Miklautz 2012-08-15 00:07:33 +02:00
parent d846024e85
commit 77b2d6e298
1 changed files with 7 additions and 0 deletions

View File

@ -22,7 +22,14 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#ifdef _WIN32
#include <io.h>
#define isatty _isatty
#ifndef STDIN_FILENO
#define STDIN_FILENO 0
#else
#include <unistd.h>
#endif
#include <freerdp/settings.h>
#include <freerdp/constants.h>
#include <freerdp/utils/print.h>