Fix compiler error.

Again, clang is warning about something that GCC doesn't mind:   an exported
inline function is referring to a private static variable.

I suspect the "right" fix is to move the inline function into the C file so it's no longer exported, but this is a smaller fix.