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