I'm not sure if this is a Mac-only problem or what, but we were getting incompatible-function-pointer errors when trying to build the RocketAMF C extensions. This fixes that! (Maybe it's like, Mac-only but as of Ruby 3.4 in specific? We're running RocketAMF in production on Ruby 3.4 right now without this. Shrug.)
4 lines
No EOL
139 B
C
4 lines
No EOL
139 B
C
// Before RFLOAT_VALUE, value was in a different place in the struct
|
|
#ifndef RFLOAT_VALUE
|
|
#define RFLOAT_VALUE(v) (RFLOAT(v)->value)
|
|
#endif |