mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-05-09 03:02:50 -06:00
first steps towards porting to Windows
This commit is contained in:
@@ -1,11 +1,29 @@
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
#ifndef _WIN32
|
||||
#include <sys/mman.h>
|
||||
#include <unistd.h>
|
||||
#include <fcntl.h>
|
||||
#include <errno.h>
|
||||
#include <pthread.h>
|
||||
|
||||
#else
|
||||
|
||||
#include <io.h>
|
||||
#include <windows.h>
|
||||
|
||||
static
|
||||
size_t getpagesize()
|
||||
{
|
||||
SYSTEM_INFO si;
|
||||
GetSystemInfo(&si);
|
||||
return si.dwPageSize;
|
||||
}
|
||||
|
||||
#define ftruncate _chsize
|
||||
#endif
|
||||
|
||||
#include "data.h"
|
||||
#include "ipc.h"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user