require '_h2ph_pre.ph';

unless(defined(&_M68K_ENDIAN_H_)) {
    eval 'sub _M68K_ENDIAN_H_ () {1;}' unless defined(&_M68K_ENDIAN_H_);
    if(defined(&__GNUC__)) {
	eval 'sub __swap32md {
	    local($x) = @_;
    	    eval q(({  &u_int32_t  &__swap32md_x = ($x);  &__asm (\\"rorw #8, %0; swap %0; rorw #8, %0\\" : \\"=d\\" ( &__swap32md_x) : \\"0\\" ( &__swap32md_x));  &__swap32md_x; }));
	}' unless defined(&__swap32md);
	eval 'sub __swap16md {
	    local($x) = @_;
    	    eval q(({  &u_int16_t  &__swap16md_x = ($x);  &__asm (\\"rorw #8, %0\\" : \\"=d\\" ( &__swap16md_x) : \\"0\\" ( &__swap16md_x));  &__swap16md_x; }));
	}' unless defined(&__swap16md);
	eval 'sub MD_SWAP () {1;}' unless defined(&MD_SWAP);
    }
    eval 'sub BYTE_ORDER () { &BIG_ENDIAN;}' unless defined(&BYTE_ORDER);
    require 'sys/endian.ph';
}
1;
