This is wrong. You want to add a function in utils.c something along the lines of this:


    int
    maps_enabled()
    {
    #if ERL_NIF_MAJOR_VERSION >= 2 && ERL_NIF_MINOR_VERSION >= 6
        return 1;
    #else
        return 0;
    #endif
    }

And then when we do initialization in the encoder and decoder if the user specifies the maps option we can use this to test and throw a badarg if they aren't enabled.