mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2025-01-09 02:55:27 +00:00
Removed dependency on unistd.h for MSVC in apps
This commit is contained in:
parent
0748895b68
commit
238be3a207
|
@ -34,9 +34,12 @@
|
|||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#include <unistd.h>
|
||||
#include <signal.h>
|
||||
|
||||
#if !defined(_MSC_VER)
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
|
||||
#include "polarssl/config.h"
|
||||
|
||||
#include "polarssl/entropy.h"
|
||||
|
|
|
@ -30,7 +30,14 @@
|
|||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
|
||||
#if !defined(_MSC_VER)
|
||||
#include <unistd.h>
|
||||
#else
|
||||
#include <io.h>
|
||||
#define read _read
|
||||
#define write _write
|
||||
#endif
|
||||
|
||||
#if defined(_WIN32) || defined(_WIN32_WCE)
|
||||
|
||||
|
|
Loading…
Reference in a new issue