include: curl/system.h is a run-time version of curlbuild.h

system.h is aimed to replace curlbuild.h at a later point in time when
we feel confident system.h works sufficiently well.

curl/system.h is currently used in parallel with curl/curlbuild.h

curl/system.h determines a data sizes, data types and include file
status based on available preprocessor defines instead of getting
generated at build-time. This, in order to avoid relying on a build-time
generated file that makes it complicated to do 32 and 64 bit bields from
the same installed set of headers.

Test 1541 verifies that system.h comes to the same conclusion that
curlbuild.h offers.

Closes #1373
This commit is contained in:
Daniel Stenberg 2017-03-29 14:38:56 +02:00
parent 5f1163517e
commit 9506d01ee5
9 changed files with 599 additions and 40 deletions

View file

@ -163,7 +163,7 @@ test1520 \
\
test1525 test1526 test1527 test1528 test1529 test1530 test1531 test1532 \
test1533 test1534 test1535 test1536 \
test1540 \
test1540 test1541 \
\
test1600 test1601 test1602 test1603 test1604 test1605 \
\

22
tests/data/test1541 Normal file
View file

@ -0,0 +1,22 @@
<testcase>
<info>
<keywords>
typecheck
</keywords>
</info>
#
# Client-side
<client>
<server>
none
</server>
<name>
verify curl/system.h detection
</name>
<tool>
lib1541
</tool>
</client>
</testcase>