Merge pull request #1591 from kleisauke/get-language-names

Only call g_get_language_names when GLib < 2.48.1
This commit is contained in:
John Cupitt 2020-03-24 17:05:49 +00:00 committed by GitHub
commit e9c47200dc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -391,7 +391,9 @@ vips_init( const char *argv0 )
* we have to make sure we do this single-threaded. See:
* https://github.com/openslide/openslide/issues/161
*/
#if !GLIB_CHECK_VERSION( 2, 48, 1 )
(void) g_get_language_names();
#endif
if( !vips__global_lock )
vips__global_lock = vips_g_mutex_new();