0
0
mirror of https://github.com/netwide-assembler/nasm.git synced 2025-09-22 10:43:39 -04:00
Commit Graph

6 Commits

Author SHA1 Message Date
H. Peter Anvin
fef549da11 zlib: yet one more portability hack
... this time for Win64 ...

Signed-off-by: H. Peter Anvin (Intel) <hpa@zytor.com>
2025-09-05 20:08:18 -07:00
H. Peter Anvin
76df52818a zlib: hack for portability...
zlib/zconf.h is ... "special".

Signed-off-by: H. Peter Anvin (Intel) <hpa@zytor.com>
2025-09-05 19:59:12 -07:00
H. Peter Anvin
e52aa40daa Include "compiler.h" in zconf.h
This seems to actually work with Z_SOLO? Still might have to resolve
problems, but...

Signed-off-by: H. Peter Anvin (Intel) <hpa@zytor.com>
2025-09-05 19:34:34 -07:00
H. Peter Anvin
f129d7ea5b zlib: disable Z_SOLO, enable Z_LARGE64
Without Z_LARGE64, compilation breaks on some platforms. Unfortunately
it seems that Z_SOLO disables Z_LARGE64...

Signed-off-by: H. Peter Anvin (Intel) <hpa@zytor.com>
2025-09-05 19:05:35 -07:00
H. Peter Anvin
5bc1da7fa9 zlib/zconf.h: set HAVE_VSNPRINTF
We *will* have vsnprintf(), if we so have to add it ourselves ;)

Signed-off-by: H. Peter Anvin (Intel) <hpa@zytor.com>
2025-08-25 20:10:44 -07:00
H. Peter Anvin
df4555d68b preproc: compress standard macros with zlib
The very simple compression scheme used for the builtin macro sets no
longer works adequately, and in fact it generates incorrect output
now.

Drop the whole idea of an ad hoc compression scheme and just use
zlib. For the case where there is no system zlib available, include a
(subset of) the zlib distribution. The configure script can be set to
force this included zlib if desired (e.g. for testing.)

Unfortunately this turned out to be a pretty painful can of worms in
terms of complexity. On the other hand having zlib available might be
useful at some point in the future.

Signed-off-by: H. Peter Anvin (Intel) <hpa@zytor.com>
2025-08-15 16:51:39 -07:00