require '_h2ph_pre.ph';

no warnings qw(redefine misc);

unless(defined(&_GLIBCXX_ATOMIC_WORD_H)) {
    eval 'sub _GLIBCXX_ATOMIC_WORD_H () {1;}' unless defined(&_GLIBCXX_ATOMIC_WORD_H);
    if(defined(&__arch64__)) {
    } else {
    }
    if(defined(&__sparc_v9__)) {
	eval 'sub _GLIBCXX_READ_MEM_BARRIER () { &__asm  &__volatile ("membar #LoadLoad":::"memory");}' unless defined(&_GLIBCXX_READ_MEM_BARRIER);
	eval 'sub _GLIBCXX_WRITE_MEM_BARRIER () { &__asm  &__volatile ("membar #StoreStore":::"memory");}' unless defined(&_GLIBCXX_WRITE_MEM_BARRIER);
    }
 elsif(defined(&__sparc_v8__)) {
	eval 'sub _GLIBCXX_WRITE_MEM_BARRIER () { &__asm  &__volatile ("stbar":::"memory");}' unless defined(&_GLIBCXX_WRITE_MEM_BARRIER);
    }
}
1;
