Added the the define constants NET40PLUS and NET45PLUS to the .NET Core runtime project.

This commit is contained in:
David Neumann 2016-07-10 12:58:51 +02:00
parent 521eb4bbf0
commit 76841da270
5 changed files with 6 additions and 6 deletions

View File

@ -34,7 +34,7 @@ using Antlr4.Runtime.Dfa;
using Antlr4.Runtime.Sharpen;
using Interlocked = System.Threading.Interlocked;
#if NET45PLUS || DOTNETCORE
#if NET45PLUS
using Volatile = System.Threading.Volatile;
#elif !PORTABLE && !COMPACT
using Thread = System.Threading.Thread;
@ -60,7 +60,7 @@ namespace Antlr4.Runtime.Dfa
{
get
{
#if NET45PLUS || DOTNETCORE
#if NET45PLUS
return Volatile.Read(ref size);
#elif !PORTABLE && !COMPACT
return Thread.VolatileRead(ref size);

View File

@ -22,7 +22,7 @@
//
//
#if (!NET40PLUS && !DOTNETCORE) || (PORTABLE && !WINRT)
#if !NET40PLUS || (PORTABLE && !WINRT)
using System;
using System.Threading;

View File

@ -26,7 +26,7 @@
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
#if !NET40PLUS && !DOTNETCORE
#if !NET40PLUS
using System;

View File

@ -27,7 +27,7 @@
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
#if !NET40PLUS && !DOTNETCORE
#if !NET40PLUS
using System;
using System.Collections;

View File

@ -1,6 +1,6 @@
{
"buildOptions": {
"define": [ "DEBUG", "TRACE", "DOTNETCORE" ],
"define": [ "DEBUG", "TRACE", "DOTNETCORE", "NET40PLUS", "NET45PLUS" ],
"keyFile": "../Antlr4.snk",
"xmlDoc": true
},