eal: add OS defines for C conditional checks
authorBruce Richardson <bruce.richardson@intel.com>
Thu, 16 Dec 2021 15:21:07 +0000 (15:21 +0000)
committerThomas Monjalon <thomas@monjalon.net>
Mon, 17 Jan 2022 18:26:42 +0000 (19:26 +0100)
commitcadb255e25d690d719d6f159e0a63f8be60650a5
tree2824a113594473adecc70e439314f77f703ff2b6
parent6f716880ee53ac1e50c9c75dc749886e3257bb8f
eal: add OS defines for C conditional checks

Define a set of macros in the build configuration to allow C runtime
code to check the current OS environment. This saves the user having to
use ifdefs for e.g. disabling particular tests on Windows.
See included documentation changes for usage examples.

Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
Acked-by: Dmitry Kozlyuk <dmitry.kozliuk@gmail.com>
Acked-by: Jerin Jacob <jerinj@marvell.com>
doc/guides/contributing/coding_style.rst
lib/eal/meson.build