/* $OpenLDAP$ */
/*
- * Copyright 1998,1999 The OpenLDAP Foundation, Redwood City, California, USA
+ * Copyright 1998-2002 The OpenLDAP Foundation, Redwood City, California, USA
* All rights reserved.
*
* Redistribution and use in source and binary forms are permitted only
#ifndef _LBER_TYPES_H
#define _LBER_TYPES_H
+#include <ldap_cdefs.h>
+
+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;
#define LBER_SOCKET_T unsigned int
/* LBER lengths - 32 bits or larger*/
-#define LBER_LEN_T int
+#define LBER_LEN_T long
/* ------------------------------------------------------------ */
/* signed lengths */
typedef signed LBER_LEN_T ber_slen_t;
+LDAP_END_DECL
+
#endif /* _LBER_TYPES_H */