Mail Archives: djgpp/1995/05/14/01:14:21
>In the file DJGPPSTD.H I have found a prototype
>
>void volatile pause(void); <-- #included in STD.H
>
>which conflicts with a user-defined function of the same name which has been
>used liberally throughout many programs I am interested in porting to DJGPP.
>As far as I can tell this function is undocumented and no such symbol is
>defined in any of the "standard" library (*.a) files. Does this function
>exist? If so, what does it do? If not, why is the prototype defined by STD.H?
pause() is not in the V1 libraries, but it should be in the V2 ones, as it
is a standard POSIX function [although POSIX declares it as returning int].
If you absolutely need to use a different function of the same name,
then you can do something like this:
#define pause PAUSIX
#include <djgppstd.h>
#undef pause
[which makes djgppstd.h declare PAUSIX() rather than pause()].
--- Aaron Ucko (ucko AT vax1 DOT rockhurst DOT edu; finger for PGP public key) | httyp!
Geek code 2.1 [for explanation, finger hayden@ | `God's Laws' (Rudy Rucker,
vax1.mankato.msus.edu]: GCS/M/S d(-) H s g+ p? \ _Master of Space and Time_):
!au a17 w+ v+(++) C++(+++)>++++ UL++(S+)>++++ \ 1) Be clean. 2) Follow Gary.
P+(++) L++ 3(-) E- N+(++) K- W--(---) M-@ V-(--) \ 3) Teach God's Laws.
po-(--) Y+ t(+) !5 j(++) R(-) G' tv--(-) b+++ +---------------------------
!D(--) B--(---) e>++++(*) u++(@) h!() f(+) r-(--)>+++ n+(-) y?
- Raw text -