Changeset 123 for Mulberry/branches/win32-merge-121/Plug-ins/CommunicatorAdbkIO/sources/CCommAdbkIOPluginDLL.cp
- Timestamp:
- 11/18/07 21:04:49 (1 year ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
Mulberry/branches/win32-merge-121/Plug-ins/CommunicatorAdbkIO/sources/CCommAdbkIOPluginDLL.cp
r18 r123 46 46 #endif 47 47 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 54 int 55 ldif_parse_line( 56 LDAP_CONST char *line, 57 char **typep, 58 char **valuep, 59 ber_len_t *vlenp 60 ); 61 char * 62 ldif_getline( char **next ); 63 char * 64 ldif_put( 65 int type, 66 LDAP_CONST char *name, 67 LDAP_CONST char *val, 68 ber_len_t vlen ); 69 #else 48 70 #define NEEDPROTOS 49 71 #include <lber.h> … … 52 74 #else 53 75 #include <ldif.h> 76 #endif 54 77 #endif 55 78 #include <string.h> … … 533 556 const char *q = ::strrchr(*p, ' '); 534 557 cdstring email = (q ? q + 1 : *p); 535 if (email[ 0UL] == '<')558 if (email[(cdstring::size_type)0] == '<') 536 559 email = cdstring(&email.c_str()[1], email.length() - 2); 537 560 cdstring name = (q ? cdstring(*p, q - *p) : cdstring::null_str);