require '_h2ph_pre.ph';

no warnings 'redefine';

unless(defined(&__SGI_STL_INTERNAL_THREADS_H)) {
    eval 'sub __SGI_STL_INTERNAL_THREADS_H () {1;}' unless defined(&__SGI_STL_INTERNAL_THREADS_H);
    require 'bits/gthr.ph';
    if(defined(&__GTHREAD_MUTEX_INIT)) {
    }
 elsif(defined( &__GTHREAD_MUTEX_INIT_FUNCTION)) {
    } else {
	die("__GTHREAD_MUTEX_INIT\ or\ __GTHREAD_MUTEX_INIT_FUNCTION\ should\ be\ defined\ by\ gthr\.h\ abstraction\ layer\,\ report\ problem\ to\ libstdc\+\+\@gcc\.gnu\.org\.");
    }
    if(defined ( &__GTHREAD_MUTEX_INIT)) {
    }
    if(!defined( &__GTHREAD_MUTEX_INIT)  && defined( &__GTHREAD_MUTEX_INIT_FUNCTION)) {
    }
    if(!defined( &__GTHREAD_MUTEX_INIT)  && defined( &__GTHREAD_MUTEX_INIT_FUNCTION)) {
    }
    if(defined(&__GTHREAD_MUTEX_INIT)) {
    }
 elsif(defined( &__GTHREAD_MUTEX_INIT_FUNCTION)) {
    }
    if(!defined( &__GTHREAD_MUTEX_INIT)  && defined( &__GTHREAD_MUTEX_INIT_FUNCTION)) {
    }
    if(!defined( &__GTHREAD_MUTEX_INIT)  && defined( &__GTHREAD_MUTEX_INIT_FUNCTION)) {
    }
    if(defined(&__GTHREAD_MUTEX_INIT)) {
	eval 'sub __STL_MUTEX_INITIALIZER () {= {  &__GTHREAD_MUTEX_INIT };}' unless defined(&__STL_MUTEX_INITIALIZER);
    }
 elsif(defined( &__GTHREAD_MUTEX_INIT_FUNCTION)) {
	if(defined(&__GTHREAD_MUTEX_INIT_DEFAULT)) {
	    eval 'sub __STL_MUTEX_INITIALIZER () {= { 0,  &__GTHREAD_ONCE_INIT,  &__GTHREAD_MUTEX_INIT_DEFAULT };}' unless defined(&__STL_MUTEX_INITIALIZER);
	} else {
	    eval 'sub __STL_MUTEX_INITIALIZER () {= { 0,  &__GTHREAD_ONCE_INIT };}' unless defined(&__STL_MUTEX_INITIALIZER);
	}
    }
}
1;
