add unistd.h compat header for visual studio

Using:

https://stackoverflow.com/a/826027/262458

Revert 5019a201.

Signed-off-by: Rafael Kitover <rkitover@gmail.com>
This commit is contained in:
Rafael Kitover
2019-04-13 22:50:05 +00:00
parent 5019a20165
commit ed16d625e3
2 changed files with 100 additions and 104 deletions

View File

@@ -470,12 +470,8 @@ int exprCol;
* down here because we want the user's section 1 to have been scanned first. * down here because we want the user's section 1 to have been scanned first.
* The user has a chance to override it with an option. * The user has a chance to override it with an option.
*/ */
#ifndef __MSC_VER
#include <io.h>
#else
#include <unistd.h> #include <unistd.h>
#endif #endif
#endif
#ifndef YY_EXTRA_TYPE #ifndef YY_EXTRA_TYPE
#define YY_EXTRA_TYPE void* #define YY_EXTRA_TYPE void*