forked from jasder/antlr
Added the the define constants NET40PLUS and NET45PLUS to the .NET Core runtime project.
This commit is contained in:
parent
521eb4bbf0
commit
76841da270
|
@ -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);
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
//
|
||||
//
|
||||
|
||||
#if (!NET40PLUS && !DOTNETCORE) || (PORTABLE && !WINRT)
|
||||
#if !NET40PLUS || (PORTABLE && !WINRT)
|
||||
|
||||
using System;
|
||||
using System.Threading;
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
//
|
||||
|
||||
#if !NET40PLUS && !DOTNETCORE
|
||||
#if !NET40PLUS
|
||||
|
||||
using System;
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"buildOptions": {
|
||||
"define": [ "DEBUG", "TRACE", "DOTNETCORE" ],
|
||||
"define": [ "DEBUG", "TRACE", "DOTNETCORE", "NET40PLUS", "NET45PLUS" ],
|
||||
"keyFile": "../Antlr4.snk",
|
||||
"xmlDoc": true
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue