Fail compilation if the Erlang/OTP system has no dirty scheduler support.
This commit is contained in:
parent
23e535fcc2
commit
e10b7c8cfe
@ -2,6 +2,10 @@
|
|||||||
|
|
||||||
#include <sodium.h>
|
#include <sodium.h>
|
||||||
|
|
||||||
|
#ifndef ERL_NIF_DIRTY_SCHEDULER_SUPPORT
|
||||||
|
# error Requires dirty schedulers
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Errors */
|
/* Errors */
|
||||||
static
|
static
|
||||||
ERL_NIF_TERM nacl_error_tuple(ErlNifEnv *env, char *error_atom) {
|
ERL_NIF_TERM nacl_error_tuple(ErlNifEnv *env, char *error_atom) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user