require '_h2ph_pre.ph';

no warnings qw(redefine misc);

unless(defined(&_LDAP_SCHEMA_H)) {
    eval 'sub _LDAP_SCHEMA_H () {1;}' unless defined(&_LDAP_SCHEMA_H);
    require 'ldap_cdefs.ph';
    eval 'sub LDAP_SCHERR_OUTOFMEM () {1;}' unless defined(&LDAP_SCHERR_OUTOFMEM);
    eval 'sub LDAP_SCHERR_UNEXPTOKEN () {2;}' unless defined(&LDAP_SCHERR_UNEXPTOKEN);
    eval 'sub LDAP_SCHERR_NOLEFTPAREN () {3;}' unless defined(&LDAP_SCHERR_NOLEFTPAREN);
    eval 'sub LDAP_SCHERR_NORIGHTPAREN () {4;}' unless defined(&LDAP_SCHERR_NORIGHTPAREN);
    eval 'sub LDAP_SCHERR_NODIGIT () {5;}' unless defined(&LDAP_SCHERR_NODIGIT);
    eval 'sub LDAP_SCHERR_BADNAME () {6;}' unless defined(&LDAP_SCHERR_BADNAME);
    eval 'sub LDAP_SCHERR_BADDESC () {7;}' unless defined(&LDAP_SCHERR_BADDESC);
    eval 'sub LDAP_SCHERR_BADSUP () {8;}' unless defined(&LDAP_SCHERR_BADSUP);
    eval 'sub LDAP_SCHERR_DUPOPT () {9;}' unless defined(&LDAP_SCHERR_DUPOPT);
    eval 'sub LDAP_SCHERR_EMPTY () {10;}' unless defined(&LDAP_SCHERR_EMPTY);
    eval 'sub LDAP_SCHERR_MISSING () {11;}' unless defined(&LDAP_SCHERR_MISSING);
    eval 'sub LDAP_SCHERR_OUT_OF_ORDER () {12;}' unless defined(&LDAP_SCHERR_OUT_OF_ORDER);
    eval 'sub LDAP_SCHEMA_NO () {0;}' unless defined(&LDAP_SCHEMA_NO);
    eval 'sub LDAP_SCHEMA_YES () {1;}' unless defined(&LDAP_SCHEMA_YES);
    eval 'sub LDAP_SCHEMA_USER_APPLICATIONS () {0;}' unless defined(&LDAP_SCHEMA_USER_APPLICATIONS);
    eval 'sub LDAP_SCHEMA_DIRECTORY_OPERATION () {1;}' unless defined(&LDAP_SCHEMA_DIRECTORY_OPERATION);
    eval 'sub LDAP_SCHEMA_DISTRIBUTED_OPERATION () {2;}' unless defined(&LDAP_SCHEMA_DISTRIBUTED_OPERATION);
    eval 'sub LDAP_SCHEMA_DSA_OPERATION () {3;}' unless defined(&LDAP_SCHEMA_DSA_OPERATION);
    eval 'sub LDAP_SCHEMA_ABSTRACT () {0;}' unless defined(&LDAP_SCHEMA_ABSTRACT);
    eval 'sub LDAP_SCHEMA_STRUCTURAL () {1;}' unless defined(&LDAP_SCHEMA_STRUCTURAL);
    eval 'sub LDAP_SCHEMA_AUXILIARY () {2;}' unless defined(&LDAP_SCHEMA_AUXILIARY);
    eval 'sub LDAP_SCHEMA_ALLOW_NONE () {0x;}' unless defined(&LDAP_SCHEMA_ALLOW_NONE);
    eval 'sub LDAP_SCHEMA_ALLOW_NO_OID () {0x1;}' unless defined(&LDAP_SCHEMA_ALLOW_NO_OID);
    eval 'sub LDAP_SCHEMA_ALLOW_QUOTED () {0x2;}' unless defined(&LDAP_SCHEMA_ALLOW_QUOTED);
    eval 'sub LDAP_SCHEMA_ALLOW_DESCR () {0x4;}' unless defined(&LDAP_SCHEMA_ALLOW_DESCR);
    eval 'sub LDAP_SCHEMA_ALLOW_DESCR_PREFIX () {0x8;}' unless defined(&LDAP_SCHEMA_ALLOW_DESCR_PREFIX);
    eval 'sub LDAP_SCHEMA_ALLOW_OID_MACRO () {0x10;}' unless defined(&LDAP_SCHEMA_ALLOW_OID_MACRO);
    eval 'sub LDAP_SCHEMA_ALLOW_OUT_OF_ORDER_FIELDS () {0x20;}' unless defined(&LDAP_SCHEMA_ALLOW_OUT_OF_ORDER_FIELDS);
    eval 'sub LDAP_SCHEMA_ALLOW_ALL () {0x3f;}' unless defined(&LDAP_SCHEMA_ALLOW_ALL);
    eval 'sub LDAP_SCHEMA_SKIP () {0x80;}' unless defined(&LDAP_SCHEMA_SKIP);
}
1;
