require '_h2ph_pre.ph';

no warnings qw(redefine misc);

unless(defined(&__objc_decls_INCLUDE_GNU)) {
    eval 'sub __objc_decls_INCLUDE_GNU () {1;}' unless defined(&__objc_decls_INCLUDE_GNU);
    if(defined (&_WIN32) || defined (&__WIN32__) || defined (&WIN32)) {
	if(defined(&DLL_EXPORT)) {
	    eval 'sub objc_EXPORT () { &__declspec( &dllexport);}' unless defined(&objc_EXPORT);
	    eval 'sub objc_DECLARE () { &__declspec( &dllexport);}' unless defined(&objc_DECLARE);
	} else {
	    eval 'sub objc_EXPORT () { &extern  &__declspec( &dllimport);}' unless defined(&objc_EXPORT);
	    eval 'sub objc_DECLARE () { &extern  &__declspec( &dllimport);}' unless defined(&objc_DECLARE);
	}
    } else {
	eval 'sub objc_EXPORT () { &extern;}' unless defined(&objc_EXPORT);
	eval 'sub objc_DECLARE () {1;}' unless defined(&objc_DECLARE);
    }
}
1;
