logging-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bode...@apache.org
Subject svn commit: r1171557 - in /logging/log4net/trunk/src: Appender/OutputDebugStringAppender.cs Util/NativeError.cs
Date Fri, 16 Sep 2011 13:42:10 GMT
Author: bodewig
Date: Fri Sep 16 13:42:09 2011
New Revision: 1171557

URL: http://svn.apache.org/viewvc?rev=1171557&view=rev
Log:
There is no SecurityPermission type in Compact Framework

Modified:
    logging/log4net/trunk/src/Appender/OutputDebugStringAppender.cs
    logging/log4net/trunk/src/Util/NativeError.cs

Modified: logging/log4net/trunk/src/Appender/OutputDebugStringAppender.cs
URL: http://svn.apache.org/viewvc/logging/log4net/trunk/src/Appender/OutputDebugStringAppender.cs?rev=1171557&r1=1171556&r2=1171557&view=diff
==============================================================================
--- logging/log4net/trunk/src/Appender/OutputDebugStringAppender.cs (original)
+++ logging/log4net/trunk/src/Appender/OutputDebugStringAppender.cs Fri Sep 16 13:42:09 2011
@@ -77,8 +77,9 @@ namespace log4net.Appender
 		/// </remarks>
 #if NET_4_0
         [System.Security.SecuritySafeCritical]
-#endif
+#elif !NETFC
         [System.Security.Permissions.SecurityPermission(System.Security.Permissions.SecurityAction.Demand,
UnmanagedCode = true)]
+#endif
         override protected void Append(LoggingEvent loggingEvent) 
 		{
 			OutputDebugString(RenderLoggingEvent(loggingEvent));

Modified: logging/log4net/trunk/src/Util/NativeError.cs
URL: http://svn.apache.org/viewvc/logging/log4net/trunk/src/Util/NativeError.cs?rev=1171557&r1=1171556&r2=1171557&view=diff
==============================================================================
--- logging/log4net/trunk/src/Util/NativeError.cs (original)
+++ logging/log4net/trunk/src/Util/NativeError.cs Fri Sep 16 13:42:09 2011
@@ -116,8 +116,9 @@ namespace log4net.Util 
 		/// </remarks>
 #if NET_4_0
         [System.Security.SecuritySafeCritical]
-#endif
+#elif !NETFC
         [System.Security.Permissions.SecurityPermission(System.Security.Permissions.SecurityAction.Demand,
UnmanagedCode=true)]
+#endif
         public static NativeError GetLastError() 
 		{
 			int number = Marshal.GetLastWin32Error();
@@ -158,8 +159,9 @@ namespace log4net.Util 
 		/// </remarks>
 #if NET_4_0
         [System.Security.SecuritySafeCritical]
-#endif
+#elif !NETFC
         [System.Security.Permissions.SecurityPermission(System.Security.Permissions.SecurityAction.Demand,
UnmanagedCode = true)]
+#endif
         public static string GetErrorMessage(int messageId) 
 		{
 			// Win32 constants



Mime
View raw message