It turns out that putting inline functions in C header files is not a
good idea, and can cause linking problems if the compiler decides not
to inline them. In principle this is solvable by using a "static
inline" declaration, but this potentially makes a copy in every
compilation unit. Since we don't actually care about the performance
of this function, just use a non-inline function.
else
return util_error_string (status);
}
else
return util_error_string (status);
}
+
+const char *
+gzerror_str(gzFile file)
+{
+ int dummy;
+ return gzerror (file, &dummy);
+}
/* Call gzerror with a dummy errno argument, the docs don't promise to
* support the NULL case */
/* Call gzerror with a dummy errno argument, the docs don't promise to
* support the NULL case */
-inline const char *
-gzerror_str(gzFile file) { int dummy; return gzerror (file, &dummy); }
+const char *
+gzerror_str(gzFile file);