ext/nokogiri_ext_xmlsec/xmlsecrb.h in nokogiri-xmlsec-instructure-0.10.1 vs ext/nokogiri_ext_xmlsec/xmlsecrb.h in nokogiri-xmlsec-instructure-0.10.2

- old
+ new

@@ -18,9 +18,15 @@ #include <xmlsec/xmlenc.h> #include <xmlsec/templates.h> #include <xmlsec/crypto.h> #include <xmlsec/errors.h> +#include <nokogiri.h> +// Lifted from modern nokogiri.h +#ifndef Noko_Node_Get_Struct + #define Noko_Node_Get_Struct(obj,type,sval) ((sval) = (type*)DATA_PTR(obj)) +#endif + // TODO(awong): Support non-gcc and non-clang compilers. #define EXTENSION_EXPORT __attribute__((visibility("default"))) VALUE sign(VALUE self, VALUE rb_opts); VALUE verify_with(VALUE self, VALUE rb_opts);