From: marco atzeri <marco.atzeri@gmail.com>
To: cygwin@cygwin.com
Subject: GetDriveType on gnulib
Date: Thu, 22 Mar 2012 17:16:00 -0000 [thread overview]
Message-ID: <4F6B5E3F.8020808@gmail.com> (raw)
Hi Eric Blake,
this portion of your gnulib code
----------------------------------------------
#ifdef __CYGWIN__
#include <windows.h>
#define ME_REMOTE me_remote
/* All cygwin mount points include `:' or start with `//'; so it
requires a native Windows call to determine remote disks. */
static int
me_remote (char const *fs_name, char const *fs_type _GL_UNUSED)
{
if (fs_name[0] && fs_name[1] == ':')
{
char drive[4];
sprintf (drive, "%c:\\", fs_name[0]);
switch (GetDriveType (drive))
{
case DRIVE_REMOVABLE:
case DRIVE_FIXED:
case DRIVE_CDROM:
case DRIVE_RAMDISK:
return 0;
}
}
return 1;
}
#endif
-------------------------------------
has been reused on midnight commander 4.8.x , but on cygwin-1.7.11,
the #include <windows.h> is causing:
CC libmcfilemanager_la-mountlist.lo
In file included from
/usr/lib/gcc/i686-pc-cygwin/4.5.3/../../../../include/w32api/objbase.h:73:0,
from
/usr/lib/gcc/i686-pc-cygwin/4.5.3/../../../../include/w32api/ole2.h:9,
from
/usr/lib/gcc/i686-pc-cygwin/4.5.3/../../../../include/w32api/windows.h:114,
from
/pub/devel/mc/mc-4.8.1.1-1/src/mc-4.8.1.1/src/filemanager/mountlist.c:217:
/usr/lib/gcc/i686-pc-cygwin/4.5.3/../../../../include/w32api/objidl.h:95:3:
error: expected identifier or '(' before string constant
/pub/devel/mc/mc-4.8.1.1-1/src/mc-4.8.1.1/src/filemanager/mountlist.c:222:53:
error: expected ';', ',' or ')' before '_GL_UNUSED'
/pub/devel/mc/mc-4.8.1.1-1/src/mc-4.8.1.1/src/filemanager/mountlist.c:
In function 'read_file_system_list':
idea about the possible culprit ?
Regards
Marco
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
next reply other threads:[~2012-03-22 17:16 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-03-22 17:16 marco atzeri [this message]
2012-03-22 17:37 ` Eric Blake
2012-07-08 20:20 ` marco atzeri
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4F6B5E3F.8020808@gmail.com \
--to=marco.atzeri@gmail.com \
--cc=cygwin@cygwin.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).