<div dir="ltr">Hello,<div><br></div><div>I'm implementing FFI for termios functions (I noticed Python has got all this covered: serial, termios, fnctl and so on, whereas Racket seemed not (at least serial, which I'm trying to do next)), and I'm wondering how to tackle the values defined in C headers (especially those that are depending on other defines), for example:</div><div><br></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><div>#ifdef __USE_MISC</div></div><div><div># define XTABS<span class="" style="white-space:pre">    </span>0014000</div></div><div><div>#endif</div></div></blockquote><div><br></div><div>I'd like to have such values define in my library module, but then what about differences? Some should be part of POSIX standard, but from what I see there is lots of ifdefs so some could vary.</div><div><br></div>I checked Python, and seems such modules are implemented natively, so that when they get build proper consts are introduced and then such module is depending on a environment it was build in. Does similar way could be used for racket? Or what should be generaly favored way of doing such things here?</div>