Opened 9 years ago
Closed 2 years ago
#801 closed defect (wontfix)
non-standard functions
Reported by: | Peter | Owned by: | Jari Häkkinen |
---|---|---|---|
Priority: | trivial | Milestone: | |
Component: | utility | Version: | 0.11.2 |
Keywords: | Cc: |
Description
Current yat uses some posix functions like opendir
, fnmatch
, and basename
, which are not included in any C or C++ standard. Not a big deal but I think we should either
- Document the requirement
- or have configure check if functions are available, and if not exclude related functionality from compilation of libyat.
- or similar to 2. but provide workaround code
For 2. it's perhaps a good idea to PP guard out functions from header files as well, but it's a bit dirty to expose too much of config.h
content in the public headers. For 3. I have no idea how difficult things are to implement, but I guess in that case it's better to take the big leap and pull in gnulib since this is exactly what they are doing. While typing I realize there is an option 1 1/2 too: Document the requirements and check for them in configure (prefer configure error over compilation error).
Change History (1)
comment:1 Changed 2 years ago by
Milestone: | yat 0.x+ |
---|---|
Resolution: | → wontfix |
Status: | new → closed |
see comment for ticket #854