require '_h2ph_pre.ph';

unless(defined(&_STDDEF_H_)) {
    eval 'sub _STDDEF_H_ () {1;}' unless defined(&_STDDEF_H_);
    require 'machine/ansi.ph';
    if(defined(&_BSD_SIZE_T_)) {
	undef(&_BSD_SIZE_T_) if defined(&_BSD_SIZE_T_);
    }
    if(defined(&_BSD_WCHAR_T_)) {
	undef(&_BSD_WCHAR_T_) if defined(&_BSD_WCHAR_T_);
    }
    unless(defined(&NULL)) {
	if(defined(&__GNUG__)) {
	    eval 'sub NULL () { &__null;}' unless defined(&NULL);
	} else {
	    eval 'sub NULL () {0;}' unless defined(&NULL);
	}
    }
    eval 'sub offsetof {
        local($type, $member) = @_;
	    eval q((((0)->$member)));
    }' unless defined(&offsetof);
}
1;
