git ssb

0+

dangerousbeans / %aPBe2k3ugtjBr4rrsU1…



Commit 054888806bcede3049ccb38bf421ec7986973657

require ruby/util.h to fix deprecation warning (closes #45)

Aman Gupta committed on 3/31/2013, 3:03:05 AM
Parent: 94f8d0ae95ed773cb9e31a71e4046d3b97e11d70

Files changed

ext/mri/extconf.rbchanged
ext/mri/wrapper.cchanged
ext/mri/extconf.rbView
@@ -10,7 +10,8 @@
1010 end
1111 exit 0
1212 else
1313 require "mkmf"
14+ have_header('ruby/util.h')
1415 dir_config("bcrypt_ext")
1516 create_makefile("bcrypt_ext")
1617 end
ext/mri/wrapper.cView
@@ -23,9 +23,13 @@
2323 #endif
2424 #endif
2525
2626 #include <ruby.h>
27+#ifdef HAVE_RUBY_UTIL_H
28+#include <ruby/util.h>
29+#else
2730 #include <util.h>
31+#endif
2832
2933 #define CRYPT_OUTPUT_SIZE (7 + 22 + 31 + 1)
3034 #define CRYPT_GENSALT_OUTPUT_SIZE (7 + 22 + 1)
3135

Built with git-ssb-web