C-linking

- Found a work-around to get it building
This commit is contained in:
Tristan B. Velloza Kildaire 2023-02-26 16:58:39 +02:00
parent 220b8d3df0
commit 2c0f7f9292
2 changed files with 6 additions and 4 deletions

View File

@ -6,5 +6,6 @@
"description": "A wait/notify mechanism for D",
"license": "LGPL v3.0",
"name": "libsnooze",
"targetType": "library"
"targetType": "library",
"dflags": ["source/libsnooze/clib.c"]
}

View File

@ -1,8 +1,9 @@
module libsnooze.event;
import libsnooze.clib : pipe, write, read;
import libsnooze.clib : select, fd_set, fdSetZero, fdSetSet;
import libsnooze.clib : timeval, time_t, suseconds_t;
// import libsnooze.clib : pipe, write, read;
// import libsnooze.clib : select, fd_set, fdSetZero, fdSetSet;
// import libsnooze.clib : timeval, time_t, suseconds_t;
import clib;
import core.thread : Thread, Duration, dur;
import core.sync.mutex : Mutex;
import libsnooze.exceptions : SnoozeError;