X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=include%2Flber_types.nt;h=9b04d5c76eef771f06697b6bdbb51f8c2908fbeb;hb=1a20c9a582ba56d09e1df0b3b911204f251f19fb;hp=a0447cf09c19204a700e5b92454792de20c3debc;hpb=57feddec732ff0c96bf6ae2b5eba1a2b68c19839;p=openldap diff --git a/include/lber_types.nt b/include/lber_types.nt index a0447cf09c..9b04d5c76e 100644 --- a/include/lber_types.nt +++ b/include/lber_types.nt @@ -1,6 +1,6 @@ /* $OpenLDAP$ */ /* - * Copyright 1998,1999 The OpenLDAP Foundation, Redwood City, California, USA + * Copyright 1998-2000 The OpenLDAP Foundation, Redwood City, California, USA * All rights reserved. * * Redistribution and use in source and binary forms are permitted only @@ -17,12 +17,16 @@ #ifndef _LBER_TYPES_H #define _LBER_TYPES_H +#include + +LDAP_BEGIN_DECL + /* * NT types: * * bitsof(short) == 2 * bitsof(int) == 4 - * bitsof(long) == 4 + * bitsof(long) == 4 (or larger) * * typedef unsigned int size_t; * typedef unsigned int SOCKET; @@ -40,7 +44,7 @@ #define LBER_SOCKET_T unsigned int /* LBER lengths - 32 bits or larger*/ -#define LBER_LEN_T int +#define LBER_LEN_T long /* ------------------------------------------------------------ */ @@ -63,4 +67,6 @@ typedef unsigned LBER_LEN_T ber_len_t; /* signed lengths */ typedef signed LBER_LEN_T ber_slen_t; +LDAP_END_DECL + #endif /* _LBER_TYPES_H */