/* $OpenLDAP$ */
/* This work is part of OpenLDAP Software <http://www.openldap.org/>.
*
- * Copyright 1998-2015 The OpenLDAP Foundation.
+ * Copyright 1998-2018 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
(dst)->bv_val = (bv)->bv_val; \
} while (0)
+#ifndef STRLENOF
+#define STRLENOF(s) (sizeof(s)-1)
+#endif
+
#define BER_BVC(s) { STRLENOF(s), (char *)(s) }
#define BER_BVNULL { 0L, NULL }
#define BER_BVZERO(bv) \