add SIZEOF_LONG constant

This commit is contained in:
Radim Kolar 2024-07-08 12:47:01 +02:00
parent 058bbd0ea4
commit 8b87dfd6da
2 changed files with 3 additions and 0 deletions

View File

@ -22,6 +22,7 @@ Version NEXT
exit build if function is unavailable.
parsecheck: report if all tests passed / some failed
parsecheck: init all fields in testcase results
SConstruct: declare CPP constant SIZEOF_LONG
Version 2.8.1b29 - 24 Aug 2019
added scons command line argument without-fspscan=yes for building

View File

@ -145,6 +145,8 @@ if not conf.CheckType("union semun", "#include <sys/types.h>\n#include <sys/ipc.
conf.env.Append(CPPFLAGS = "-D_SEM_SEMUN_UNDEFINED=1")
conf.checkForLargeFiles(conf)
if not conf.CheckFunc('fseeko'): Exit(1)
ulong=conf.CheckTypeSize('long')
conf.env.Append(CPPFLAGS = '-DSIZEOF_LONG='+str(ulong))
conf.checkForLockingType(conf)
if conf.checkReliableSignals():
conf.env.Append(CPPFLAGS = '-DRELIABLE_SIGNALS')