Mail Archives: djgpp/1993/06/25/13:09:39
> what is happening. I'd like to say
> #define getcwd(a,b) #error...
> but I don't think that works. Maybe
> #define getcwd(a,) (SELECT_ONE_OF | DOS_GETCWD | UNIX_GETCWD)
How about:
#define getcwd you_must_set_either_DOS_GETCWD_or_UNIX_GETCWD !
One look at the .h after the screen full of error messages:
C> gcc test.c
test.c: In function `main':
test.c:5: `you_must_set_either_DOS_GETCWD_or_UNIX_GETCWD' undeclared (first use this function)
test.c:5: parse error before `!'
and I think they'll figure it out.
- Raw text -