Ralf S. Engelschall
|
e71a2c0cd9
Fix the following two problems (as reported today this way to the Flex authors): 1. In recent Flex versions you introduced some C99 support. At least the Flex 2.5.21 release is fully broken on non-C99 platforms. For instance the shipped pre-built scan.c contains non-conditional usage of <stdint.h> and references to int32_t, etc. This immediately fails. I've worked around it by doing "flex -oscan.c scan.l" before building (where "flex" was an old 2.5.4 version). 2. Additionally at least on FreeBSD 4.x the usage of <malloc.h> gives lots of warnings: /usr/include/malloc.h:2:2: warning: #warning "this file includes <malloc.h> which is deprecated, use <stdlib.h> instead". The reason is flexdef.h, line 119. <malloc.h> is really never needed today on modern systems, so I personally never included it in any software packages of me. And my packages like GNU Pth and others were ported to really lots of platforms -- both modern and esoteric ones. So I recommend you to complete remove likes 118-120, but as a workaround for myself I used a simple "#if defined(HAVE_MALLOC_H) && !defined(__FreeBSD__)" but the complete removal is certainly better.
|
23 years ago |