Fail compilation if the Erlang/OTP system has no dirty scheduler support.

This commit is contained in:
Jesper Louis Andersen 2014-12-16 15:12:52 +01:00
parent 23e535fcc2
commit e10b7c8cfe

View File

@ -2,6 +2,10 @@
#include <sodium.h>
#ifndef ERL_NIF_DIRTY_SCHEDULER_SUPPORT
# error Requires dirty schedulers
#endif
/* Errors */
static
ERL_NIF_TERM nacl_error_tuple(ErlNifEnv *env, char *error_atom) {