mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-23 19:42:50 -06:00
enable the compilation with MSVC which doesn't define ssize_t
This commit is contained in:
@@ -14,6 +14,7 @@
|
|||||||
|
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
|
typedef SSIZE_T ssize_t;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef __APPLE__
|
#ifdef __APPLE__
|
||||||
|
|||||||
@@ -33,7 +33,6 @@ size_t getpagesize()
|
|||||||
#define close _close
|
#define close _close
|
||||||
|
|
||||||
#include <BaseTsd.h>
|
#include <BaseTsd.h>
|
||||||
typedef SSIZE_T ssize_t;
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define ftruncate _chsize
|
#define ftruncate _chsize
|
||||||
|
|||||||
Reference in New Issue
Block a user