summaryrefslogtreecommitdiff
path: root/libphobos/libdruntime/core/sys/freebsd/dlfcn.d
diff options
context:
space:
mode:
Diffstat (limited to 'libphobos/libdruntime/core/sys/freebsd/dlfcn.d')
-rw-r--r--libphobos/libdruntime/core/sys/freebsd/dlfcn.d15
1 files changed, 6 insertions, 9 deletions
diff --git a/libphobos/libdruntime/core/sys/freebsd/dlfcn.d b/libphobos/libdruntime/core/sys/freebsd/dlfcn.d
index e390743692d..95b6c1dfbae 100644
--- a/libphobos/libdruntime/core/sys/freebsd/dlfcn.d
+++ b/libphobos/libdruntime/core/sys/freebsd/dlfcn.d
@@ -86,16 +86,13 @@ static if (__BSD_VISIBLE)
};
}
-private template __externC(RT, P...)
-{
- alias __externC = extern(C) RT function(P) nothrow @nogc;
-}
-
/* XSI functions first. */
-static assert(is(typeof(&dlclose) == __externC!(int, void*)));
-static assert(is(typeof(&dlerror) == __externC!(char*)));
-static assert(is(typeof(&dlopen) == __externC!(void*, const char*, int)));
-static assert(is(typeof(&dlsym) == __externC!(void*, void*, const char*)));
+extern(C) {
+ static assert(is(typeof(&dlclose) == int function(void*)));
+ static assert(is(typeof(&dlerror) == char* function()));
+ static assert(is(typeof(&dlopen) == void* function(in char*, int)));
+ static assert(is(typeof(&dlsym) == void* function(void*, in char*)));
+}
static if (__BSD_VISIBLE)
{