all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Robert Pluim <rpluim@gmail.com>
Cc: emacs-devel@gnu.org
Subject: Re: master 094eb04: Fix MS-Windows build with mingw.org's MinGW
Date: Tue, 26 Nov 2019 20:50:48 +0200	[thread overview]
Message-ID: <831rtusc8n.fsf@gnu.org> (raw)
In-Reply-To: <m2v9r6jxzh.fsf@gmail.com> (message from Robert Pluim on Tue, 26 Nov 2019 19:25:54 +0100)

> From: Robert Pluim <rpluim@gmail.com>
> Cc: Eli Zaretskii <eliz@gnu.org>
> Date: Tue, 26 Nov 2019 19:25:54 +0100
> 
> Thanks for that Eli. Since this is expected to work on pre-Vista
> versions of Windows, is the equivalent to the following hack needed in
> the new network-interface-list:
> 
> 	    case MIB_IF_TYPE_ETHERNET:
> 	      /* Windows before Vista reports wireless adapters as
> 		 Ethernet.  Work around by looking at the Description
> 		 string.  */
> 	      if (strstr (adapter->Description, "Wireless "))
> 		{
> 		  ifmt_idx = WLAN;
> 		  if_num = wlan_count++;
> 		}
> 	      else
> 		{
> 		  ifmt_idx = ETHERNET;
> 		  if_num = eth_count++;
> 		}

I guess so.

> GetAdaptersAddresses returns wchar_t* for the description field, which
> means (I hope), that thereʼs some api for converting it appropriately.

We can use wcsstr instead.



  reply	other threads:[~2019-11-26 18:50 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20191126171403.25928.6996@vcs0.savannah.gnu.org>
     [not found] ` <20191126171404.9DBBC20B21@vcs0.savannah.gnu.org>
2019-11-26 18:25   ` master 094eb04: Fix MS-Windows build with mingw.org's MinGW Robert Pluim
2019-11-26 18:50     ` Eli Zaretskii [this message]
2019-11-26 19:33       ` Eli Zaretskii
2019-11-27 10:57         ` Robert Pluim
2019-11-27 15:58           ` Eli Zaretskii
2019-11-28  8:43             ` Robert Pluim

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=831rtusc8n.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=rpluim@gmail.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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.