mirror of
https://github.com/gbdev/rgbds.git
synced 2026-10-06 12:15:39 +00:00
Move some MSVC-specific defines to platform.h
This commit is contained in:
1 parent
138523570e
commit
8e7afb0ab3
2 files changed
+49
-43
No files matched your search
@@ -32,4 +32,11 @@
|
||||
# define S_ISDIR(mode) (((mode) & S_IFMT) == S_IFDIR)
|
||||
#endif
|
||||
|
||||
/* MSVC doesn't use POSIX types or defines for `read` */
|
||||
#ifdef _MSC_VER
|
||||
# define STDIN_FILENO 0
|
||||
# define ssize_t int
|
||||
# define SSIZE_MAX INT_MAX
|
||||
#endif
|
||||
|
||||
#endif /* RGBDS_PLATFORM_H */
|
||||
Reference in new issue
Block a user