mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-11-04 03:15:26 -07:00
fix the compilation on Windows again
This commit is contained in:
1 parent
c1690ffa77
commit
e0b93a37e2
1 file changed
+5
-4
@@ -22,9 +22,6 @@ size_t getpagesize()
|
||||
}
|
||||
|
||||
#define ftruncate _chsize
|
||||
|
||||
typedef DWORD pid_t;
|
||||
|
||||
#define getpid GetCurrentProcessId
|
||||
|
||||
static
|
||||
@@ -291,7 +288,11 @@ typedef struct mchunk mbin;
|
||||
static char slovo[5] = {'S','L','O','V','O'};
|
||||
|
||||
typedef struct {
|
||||
#ifndef _WIN32
|
||||
pid_t pid;
|
||||
#else
|
||||
DWORD pid;
|
||||
#endif
|
||||
object next;
|
||||
} process_entry;
|
||||
|
||||
@@ -609,7 +610,7 @@ void PgfDB::register_process(bool *is_first)
|
||||
PGF_INTERNAL
|
||||
void PgfDB::unregister_process()
|
||||
{
|
||||
pid_t pid = getpid();
|
||||
auto pid = getpid();
|
||||
process_entry *pentry = &ms->p;
|
||||
object *plast = NULL;
|
||||
|
||||
|
||||
Reference in new issue
Block a user