summary refs log tree commit diff
path: root/crypto/src
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2015-11-09 12:10:58 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2015-11-09 12:10:58 +0700
commit36057f66032c5e2942a8c3797be39f20693318f3 (patch)
tree966eb52e8b140121cf032181f1bfb65012b6f9f7 /crypto/src
parentfixed argument null message (diff)
downloadBouncyCastle.NET-ed25519-36057f66032c5e2942a8c3797be39f20693318f3.tar.xz
Add DOTNET and LIB preprocessor flags as per BouncyCastle-PCL
Diffstat (limited to 'crypto/src')
-rw-r--r--crypto/src/cms/CMSProcessableFile.cs2
-rw-r--r--crypto/src/openpgp/PgpLiteralDataGenerator.cs4
-rw-r--r--crypto/src/openpgp/PgpUtilities.cs2
3 files changed, 4 insertions, 4 deletions
diff --git a/crypto/src/cms/CMSProcessableFile.cs b/crypto/src/cms/CMSProcessableFile.cs
index b514bdbda..c74d2a846 100644
--- a/crypto/src/cms/CMSProcessableFile.cs
+++ b/crypto/src/cms/CMSProcessableFile.cs
@@ -1,4 +1,4 @@
-#if !PORTABLE
+#if !PORTABLE || DOTNET
 using System;
 using System.IO;
 
diff --git a/crypto/src/openpgp/PgpLiteralDataGenerator.cs b/crypto/src/openpgp/PgpLiteralDataGenerator.cs
index 17a6eeef2..7672659ca 100644
--- a/crypto/src/openpgp/PgpLiteralDataGenerator.cs
+++ b/crypto/src/openpgp/PgpLiteralDataGenerator.cs
@@ -141,8 +141,8 @@ namespace Org.BouncyCastle.Bcpg.OpenPgp
 			return new WrappedGeneratorStream(this, pkOut);
 		}
 
-#if !PORTABLE
-		/// <summary>
+#if !PORTABLE || DOTNET
+        /// <summary>
 		/// <p>
 		/// Open a literal data packet for the passed in <c>FileInfo</c> object, returning
 		/// an output stream for saving the file contents.
diff --git a/crypto/src/openpgp/PgpUtilities.cs b/crypto/src/openpgp/PgpUtilities.cs
index 9238edcfc..055f99636 100644
--- a/crypto/src/openpgp/PgpUtilities.cs
+++ b/crypto/src/openpgp/PgpUtilities.cs
@@ -347,7 +347,7 @@ namespace Org.BouncyCastle.Bcpg.OpenPgp
             return MakeKey(algorithm, keyBytes);
         }
 
-#if !PORTABLE
+#if !PORTABLE || DOTNET
         /// <summary>Write out the passed in file as a literal data packet.</summary>
         public static void WriteFileToLiteralData(
             Stream		output,