You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4net-dev@logging.apache.org by dr...@apache.org on 2004/07/24 16:54:03 UTC
cvs commit: logging-log4net/src/Util NativeError.cs
drieseng 2004/07/24 07:54:03
Modified: src/Appender EventLogAppender.cs NetSendAppender.cs
OutputDebugStringAppender.cs
src/Util NativeError.cs
Log:
do not include these classes in log4net Core as these are Windows-specific
Revision Changes Path
1.8 +4 -0 logging-log4net/src/Appender/EventLogAppender.cs
Index: EventLogAppender.cs
===================================================================
RCS file: /home/cvs/logging-log4net/src/Appender/EventLogAppender.cs,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- EventLogAppender.cs 1 Jun 2004 18:34:40 -0000 1.7
+++ EventLogAppender.cs 24 Jul 2004 14:54:02 -0000 1.8
@@ -24,6 +24,9 @@
#if !MONO
// SSCLI 1.0 has no support for System.Diagnostics.EventLog
#if !SSCLI
+// We don't want framework or platform specific code in the Core version of
+// log4net
+#if !CORE
using System;
using System.Diagnostics;
@@ -319,6 +322,7 @@
}
}
+#endif // !CORE
#endif // !SSCLI
#endif // !MONO
#endif // !NETCF
1.6 +4 -1 logging-log4net/src/Appender/NetSendAppender.cs
Index: NetSendAppender.cs
===================================================================
RCS file: /home/cvs/logging-log4net/src/Appender/NetSendAppender.cs,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- NetSendAppender.cs 30 May 2004 18:01:18 -0000 1.5
+++ NetSendAppender.cs 24 Jul 2004 14:54:02 -0000 1.6
@@ -24,7 +24,9 @@
#if !MONO
// SSCLI 1.0 has no support for Win32 NetMessageBufferSend API
#if !SSCLI
-
+// We don't want framework or platform specific code in the Core version of
+// log4net
+#if !CORE
using System;
using System.Globalization;
@@ -371,6 +373,7 @@
}
}
+#endif // !CORE
#endif // !SSCLI
#endif // !MONO
#endif // !NETCF
1.4 +8 -2 logging-log4net/src/Appender/OutputDebugStringAppender.cs
Index: OutputDebugStringAppender.cs
===================================================================
RCS file: /home/cvs/logging-log4net/src/Appender/OutputDebugStringAppender.cs,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- OutputDebugStringAppender.cs 21 May 2004 22:15:32 -0000 1.3
+++ OutputDebugStringAppender.cs 24 Jul 2004 14:54:02 -0000 1.4
@@ -17,8 +17,12 @@
#endregion
// MONO 1.0 has no support for Win32 OutputDebugString API
+#if !MONO
// SSCLI 1.0 has no support for Win32 OutputDebugString API
-#if !MONO && !SSCLI
+#if !SSCLI
+// We don't want framework or platform specific code in the Core version of
+// log4net
+#if !CORE
using System.Runtime.InteropServices;
@@ -95,4 +99,6 @@
}
}
-#endif // !MONO && !SSCLI
\ No newline at end of file
+#endif // !CORE
+#endif // !SSCLI
+#endif // !MONO
1.7 +8 -2 logging-log4net/src/Util/NativeError.cs
Index: NativeError.cs
===================================================================
RCS file: /home/cvs/logging-log4net/src/Util/NativeError.cs,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- NativeError.cs 1 Jun 2004 17:54:05 -0000 1.6
+++ NativeError.cs 24 Jul 2004 14:54:02 -0000 1.7
@@ -17,8 +17,12 @@
#endregion
// MONO 1.0 has no support for Win32 Error APIs
+#if !MONO
// SSCLI 1.0 has no support for Win32 Error APIs
-#if !MONO && !SSCLI
+#if !SSCLI
+// We don't want framework or platform specific code in the Core version of
+// log4net
+#if !CORE
using System;
using System.Globalization;
@@ -243,4 +247,6 @@
}
}
-#endif // !MONO && !SSCLI
\ No newline at end of file
+#endif // !CORE
+#endif // !SSCLI
+#endif // !MONO