]> git.sur5r.net Git - openldap/blob - libraries/macintosh/macos.h
d765413c3407d10d36806e1e0a9bc2ae6902f595
[openldap] / libraries / macintosh / macos.h
1 /*
2  * macos.h: bridge unix and Mac for  LBER/LDAP
3  */
4 #define ntohl( l )      (l)
5 #define htonl( l )      (l)
6 #define ntohs( s )      (s)
7 #define htons( s )      (s)
8
9 #ifdef NO_GLOBALS
10
11 #ifdef macintosh        /* IUMagIDString declared in TextUtils.h under MPW */
12 #include <TextUtils.h>
13 #else /* macintosh */   /* IUMagIDString declared in Packages.h under ThinkC */
14 #include <Packages.h>
15 #endif /* macintosh */
16
17 #define strcasecmp( s1, s2 )    IUMagIDString( s1, s2, strlen( s1 ), \
18                                         strlen( s2 ))
19 #else /* NO_GLOBALS */
20 int strcasecmp( char *s1, char *s2 );
21 int strncasecmp( char *s1, char *s2, long n );
22 #endif NO_GLOBALS
23
24 #include <Memory.h>     /* to get BlockMove() */
25
26 char *strdup( char *s );
27
28 #ifndef isascii
29 #define isascii(c)      ((unsigned)(c)<=0177)   /* for those who don't have this in ctype.h */
30 #endif isascii
31
32 #include "tcp.h"