1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

dl: add more dlopen flags (#17184)

This commit is contained in:
MatejMagat305 2023-02-01 17:32:35 +01:00 committed by GitHub
parent ed58b95a9d
commit e70848a98b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 16 additions and 6 deletions

View File

@ -6,9 +6,14 @@ $if linux {
#flag -ldl
}
pub const rtld_now = C.RTLD_NOW
pub const rtld_lazy = C.RTLD_LAZY
pub const (
rtld_now = C.RTLD_NOW
rtld_lazy = C.RTLD_LAZY
rtld_global = C.RTLD_GLOBAL
rtld_local = C.RTLD_LOCAL
rtld_nodelete = C.RTLD_NODELETE
rtld_noload = C.RTLD_NOLOAD
)
fn C.dlopen(filename &char, flags int) voidptr

View File

@ -1,8 +1,13 @@
module dl
pub const rtld_now = 0
pub const rtld_lazy = 0
pub const (
rtld_now = 0
rtld_lazy = 0
rtld_global = 0
rtld_local = 0
rtld_nodelete = 0
rtld_noload = 0
)
fn C.LoadLibrary(libfilename &u16) voidptr