diff --git a/libbuild2-autoconf-tests/checks/byte-order/buildfile b/libbuild2-autoconf-tests/checks/byte-order/buildfile index 1d0346f..69bf6c5 100644 --- a/libbuild2-autoconf-tests/checks/byte-order/buildfile +++ b/libbuild2-autoconf-tests/checks/byte-order/buildfile @@ -8,16 +8,11 @@ ./: exe{driver}: c{driver} -./: h{config}: in{config} +./: exe{driver-posix}: include = ($c.target.system != 'win32-msvc') + +exe{driver-posix}: obje{driver-posix}: c{driver} c.poptions += "-I$out_base" +obje{driver-posix}: c.poptions += -D_POSIX_C_SOURCE -if ($c.target.system != 'win32-msvc') -{ - ./: exe{driver-posix}: obje{driver-posix} - - obje{driver-posix}: c{driver} - { - c.poptions += -D_POSIX_C_SOURCE - } -} +./: h{config}: in{config}