[SDL Front] MSVC doesn't have an unistd.h system file, closest is io.h, this will fix building the SDL frontend with msvc again.

This commit is contained in:
Zach Bacon 2019-04-10 17:27:45 -04:00
parent 2ae72f38cd
commit 5019a20165
No known key found for this signature in database
GPG Key ID: 0F1C8FECF5BCF671
1 changed files with 103 additions and 99 deletions

View File

@ -470,8 +470,12 @@ 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*