mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-22 11:12:07 +00:00
Have lexer not require <unistd.h> on MSVC
Required for `open`, `close`, `read`, and `STDIN_FILENO`, which are defined elsewhere on MSVC.
This commit is contained in:
@@ -19,7 +19,9 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#ifndef _MSC_VER
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
|
||||
#include "extern/utf8decoder.h"
|
||||
#include "platform.h" /* For `ssize_t` */
|
||||
|
||||
Reference in New Issue
Block a user