By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,226 Members | 1,372 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,226 IT Pros & Developers. It's quick & easy.

header for C - unistd.h

P: n/a
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.

Could someone kindly tell me which header files in C++ are compatible
with the above?

Thankyou in advance

Jul 23 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
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
Jul 23 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.