Browse Source

Fixed compatilibilty issues on MSVS.

djm34
troky 10 years ago
parent
commit
8b44007901
  1. 12
      winbuild/dist/include/unistd.h
  2. 1
      winbuild/dist/include/winbuild.h

12
winbuild/dist/include/unistd.h vendored

@ -1 +1,11 @@ @@ -1 +1,11 @@
#pragma once
#pragma once
// POSIX open,read,write... deprecated as of VC++ 2005.
// Use ISO conformant _open,_read,_write instead.
#define open _open
#define write _write
#define close _close
#define read _read
#define snprintf _snprintf
#define dup _dup
#define dup2 _dup2

1
winbuild/dist/include/winbuild.h vendored

@ -10,6 +10,7 @@ @@ -10,6 +10,7 @@
#include <stdbool.h>
#include <mmsystem.h>
#include <io.h>
#include <unistd.h>
#include <process.h>
#include <math.h>
#include <time.h>

Loading…
Cancel
Save