Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: sphan@cts.com (Stanley Phan)
Subject: STATVFS.H \x10Problems
Date: 1996/06/17	[thread overview]
Message-ID: <4q4r98$blb@news3.cts.com> (raw)



I'm having some problem using statvfs.h with the DEC C++
compiler (v5.1). 

When I use statvfs,, the compiler gives the error that I have
no constructor.

This is easy to see because the statvfs.h file contains:

#if defined(__STDC__) && !defined(_KERNEL)
int statvfs(const char *, struct statvfs *);
int fstatvfs(int, struct statvfs *);
#endif

Has anyone came across this problem, or knows about it?
It doesn't seem right.  Shouldn't these prototypes be valid
when __cplusplus is defined?
Is it safe to define STDC so these prototypes are included?
I was probing around, and noticed that CC for Solaris compiler
does define STDC and their statvfs.h is just about identical
to the DEC one...
Does someone know when __STDC__ should be defined?

thanks

-Stanley





                 reply	other threads:[~1996-06-17  4:00 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox