Pasacco schrieb:
Dear
I need to modify a program that is written by other people, and I see
#include <unistd.h>
#include <zlib.h>
which is not a standard C++ header.
Right, they are OS (unistd.h) and library (zlib.h) specific.
Could someone kindly tell me which header files in C++ are compatible
with the above?
There are various C++ wrappers for zlib that you could use, GIYF.
I don't know of any wrapper for all of unistd.h but then, it's not
really needed. I'm not aware of any variant of that header that doesn't
have an extern "C" around all function declarations if compiled by a C++
compiler. If you're worried by the fact that it's platform-specific,
you'd have to go through the code, check what functions of unistd.h it
uses and replace them with portable alternatives.
Cheers,
Malte