<sys/param.h> is not available on Windows.
Signed-off-by: Guillem Jover <guillem@hadrons.org>
#include <sys/cdefs.h>
#include <sys/types.h>
-#include <sys/param.h>
#include <assert.h>
#pragma GCC diagnostic push
/* See comment in istrsenvisx() output loop, below. */
wmsk = 0;
for (i = sizeof(wmsk) - 1; i >= 0; i--) {
- shft = i * NBBY;
+ shft = i * CHAR_BIT;
bmsk = (uint64_t)0xffLL << shft;
wmsk |= bmsk;
if ((c & wmsk) || i == 0)
clen = 0;
wmsk = 0;
for (i = sizeof(wmsk) - 1; i >= 0; i--) {
- shft = i * NBBY;
+ shft = i * CHAR_BIT;
bmsk = (uint64_t)0xffLL << shft;
wmsk |= bmsk;
if ((*dst & wmsk) || i == 0)