]> git.sur5r.net Git - openldap/blob - include/lber_types.nt
*** empty log message ***
[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 (and Win32)
14  * copied by setup.mak to lber_types.h (when confingure is not used).
15  */
16
17 #ifndef _LBER_TYPES_H
18 #define _LBER_TYPES_H
19
20 /*
21  * NT types:
22  *
23  *      bitsof(short) == 2
24  *      bitsof(int)     == 4
25  *      bitsof(long) == 4
26  *
27  *  typedef unsigned int size_t;
28  *      typedef unsigned int SOCKET;
29  *
30  *      we use native C types to avoid sucking in system headers
31  */
32
33 /* LBER boolean, enum, integers - 32 bits or larger*/
34 #define LBER_INT_T      int
35
36 /* LBER tags - 32 bits or larger */
37 #define LBER_TAG_T      long
38
39 /* LBER socket descriptor */
40 #define LBER_SOCKET_T   unsigned int
41
42 /* LBER lengths - 32 bits or larger*/
43 #define LBER_LEN_T              int
44
45 #endif /* _LBER_TYPES_H */