From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,a4a405268a43c593,start X-Google-Attributes: gidfee84,public From: sphan@cts.com (Stanley Phan) Subject: STATVFS.H Problems Date: 1996/06/17 Message-ID: <4q4r98$blb@news3.cts.com>#1/1 X-Deja-AN: 160714462 organization: CTS Network Services newsgroups: comp.unix.osf.osf1 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