Ruby: include/ruby/subst.h Source File

Ruby 3.4.5p51 (2025-07-16 revision 20cda200d3ce092571d0b5d342dadca69636cb0f)

subst.h
1#ifndef RUBY_SUBST_H /*-*-C++-*-vi:se ft=cpp:*/
2#define RUBY_SUBST_H 1
10
11#undef snprintf
12#undef vsnprintf
13#define snprintf ruby_snprintf
14#define vsnprintf ruby_vsnprintf
15
16#ifdef BROKEN_CLOSE
17#undef getpeername
18#define getpeername ruby_getpeername
19#undef getsockname
20#define getsockname ruby_getsockname
21#undef shutdown
22#define shutdown ruby_shutdown
23#undef close
24#define close ruby_close
25#endif
26#endif