]> git.sur5r.net Git - openldap/blob - include/lber_types.nt
Add OpenLDAP RCS Id
[openldap] / include / lber_types.nt
1 /* $OpenLDAP$ */
2 /*
3  * Copyright 1998,1999 The OpenLDAP Foundation, Redwood City, California, USA
4  * All rights reserved.
5  *
6  * Redistribution and use in source and binary forms are permitted only
7  * as authorized by the OpenLDAP Public License.  A copy of this
8  * license is available at http://www.OpenLDAP.org/license.html or
9  * in file LICENSE in the top-level directory of the distribution.
10  */
11
12 /*
13  * LBER types for Windows NT
14  */
15
16 #ifndef _LBER_TYPES_H_NT
17 #define _LBER_TYPES_H_NT
18
19 /*
20  * NT types:
21  *
22  *      bitsof(short) == 2
23  *      bitsof(int)     == 4
24  *      bitsof(long) == 4
25  *
26  *  typedef unsigned int size_t;
27  *      typedef unsigned int SOCKET;
28  *
29  *      we use native C types to avoid sucking in system headers
30  */
31
32 /* LBER boolean, enum, integers - 32 bits or larger*/
33 #define LBER_INT_T      int
34
35 /* LBER tags - 32 bits or larger */
36 #define LBER_TAG_T      long
37
38 /* LBER socket descriptor */
39 #define LBER_SOCKET_T   unsigned int
40
41 /* LBER lengths - 32 bits or larger*/
42 #define LBER_LEN_T              int
43
44 #endif /* _LBER_TYPES_H_NT */