Show
Ignore:
Timestamp:
11/18/07 21:04:49 (1 year ago)
Author:
daboo
Message:

Win32 VCPP changes.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • Mulberry/branches/win32-merge-121/Plug-ins/CommunicatorAdbkIO/sources/CCommAdbkIOPluginDLL.cp

    r18 r123  
    4646#endif 
    4747 
     48#ifdef __VCPP__ 
     49#define LDAP_UNICODE 0 
     50#include <winldap.h> 
     51#define LDAP_CONST const 
     52#define LDIF_PUT_VALUE 1 
     53#define ber_len_t size_t 
     54int 
     55ldif_parse_line( 
     56    LDAP_CONST char     *line, 
     57    char        **typep, 
     58    char        **valuep, 
     59    ber_len_t *vlenp 
     60); 
     61char * 
     62ldif_getline( char **next ); 
     63char * 
     64ldif_put( 
     65        int type, 
     66        LDAP_CONST char *name, 
     67        LDAP_CONST char *val, 
     68        ber_len_t vlen ); 
     69#else 
    4870#define NEEDPROTOS 
    4971#include <lber.h> 
     
    5274#else 
    5375#include <ldif.h> 
     76#endif 
    5477#endif 
    5578#include <string.h> 
     
    533556                const char *q = ::strrchr(*p, ' '); 
    534557                cdstring email = (q ? q + 1 : *p); 
    535                 if (email[0UL] == '<') 
     558                if (email[(cdstring::size_type)0] == '<') 
    536559                        email = cdstring(&email.c_str()[1], email.length() - 2); 
    537560                cdstring name = (q ? cdstring(*p, q - *p) : cdstring::null_str);