Open LiSongMWO opened 10 years ago
Hi, I looked into and found I was using quite a few Linuxisms:
vasprintf, dup3, timegm, localtime_r, gmtime_r, getline, strdup, strndup and open_memstream ...
I see what I can do, but for now you might have better luck using cygwin? [Or Linux :)]
$ make gcc -O2 -Wall -Werror -std=gnu99 -D_GNU_SOURCE -g3 -MMD -MP -MF.deps/branch.o.d -c -o branch.o -c branch.c In file included from branch.c:15:0: bitset.h: In function 'bitset_init': bitset.h:17:16: error: 'LONG_BIT' undeclared (first use in this function) bitset.h:17:16: note: each undeclared identifier is reported only once for each function it appears in bitset.h: In function 'bitset_set': bitset.h:31:45: error: 'LONG_BIT' undeclared (first use in this function) bitset.h: In function 'bitset_reset': bitset.h:41:45: error: 'LONG_BIT' undeclared (first use in this function) make: *\ [branch.o] Error 1
LONG_BIT is not a standard define in limits.h.