Message-ID: <5594457B.9000100@...1227...> Date: Wed, 01 Jul 2015 21:54:35 +0200 From: Arne Schwabe MIME-Version: 1.0 References: <015601d0b436$d555ad60$80010820$@gmail.com> In-Reply-To: <015601d0b436$d555ad60$80010820$@gmail.com> Content-Type: multipart/alternative; boundary="------------050405010508020401080805" Subject: Re: [Openvpn-devel] Compiling issue on Visual Studio 2010 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Fish Wang , openvpn-devel@lists.sourceforge.net This is a multi-part message in MIME format. --------------050405010508020401080805 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Am 01.07.15 um 21:47 schrieb Fish Wang: > > Hi, > > > > Visual Studio 2010 refuses to compile the latest code on branch > release/2.3 because __func__ is not supported. Microsoft supports > __FUNCTION__ instead of __func__ in their compiler. VS 2013 complains > the same. > > > > The following patch resolves this issue. > > > I would prefer to define _func_ as __FUNCTION__ for 2010 to keep the standard notion and not introduce yet another macro. Arne --------------050405010508020401080805 Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: 8bit
Am 01.07.15 um 21:47 schrieb Fish Wang:

Hi,

 

Visual Studio 2010 refuses to compile the latest code on branch release/2.3 because __func__ is not supported. Microsoft supports __FUNCTION__ instead of __func__ in their compiler. VS 2013 complains the same.

 

The following patch resolves this issue.

 

I would prefer to define _func_ as __FUNCTION__ for 2010 to keep the standard notion and not introduce yet another macro.

Arne
--------------050405010508020401080805--