Sign in to follow this  
Cybernator

"_is_cdrom_drive" missing? (DJGPP)

Recommended Posts

Cybernator    122
Hi, According to the docs, in order to use _is_cdrom_drive, I need to #include <dos.h>. It didn't work, so I google searched and found that the function has been taken out of "mntent.c", and is now externally callable. I assume that means the function resides somewhere in the standard library, but there's no prototype in the headers. So I tried with an external declaration, but no luck. Anyone has an idea?

Share this post


Link to post
Share on other sites
0v3rloader    100
Quote:
Original post by Cybernator
Hi,

According to the docs, in order to use _is_cdrom_drive, I need to #include <dos.h>. It didn't work, so I google searched and found that the function has been taken out of "mntent.c", and is now externally callable. I assume that means the function resides somewhere in the standard library, but there's no prototype in the headers. So I tried with an external declaration, but no luck.

Anyone has an idea?


The prototype should be in <dos.h>


EDIT: I contacted DJ by email and got the following reply:

> I was wondering if you could tell me where I can find the prototype of
> > _is_cdrom_drive function?

<dos.h>


However, I've never used the DJGPP lib so I can't help you any further.

[Edited by - 0v3rloader on August 2, 2007 11:59:56 AM]

Share this post


Link to post
Share on other sites
Cybernator    122
Yes, I've tried to include <dos.h> (as I implicitly stated in my original post), but it didn't work.

Thank you for your reply.

Edit: Checked the header file. It is certainly lacking such prototype.


[Edited by - Cybernator on August 3, 2007 3:12:12 PM]

Share this post


Link to post
Share on other sites
0v3rloader    100
Quote:
Original post by Cybernator
Yes, I've tried to include <dos.h> (as I implicitly stated in my original post), but it didn't work.

Thank you for your reply.

Edit: Checked the header file. It is certainly lacking such prototype.


The _is_cdrom_drive function apparently has been added after the 2.03 release. You need to get version 2.04b (still beta though), which you can download from here (Dev Kit and Runtime.)

Include <dos.h> and you should be rockin'.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this