internal static void InitLibgpgme() { // TODO: This should try Win32.NativeMethods and Unix.NativeMethods and use the one // that works, rather than inferring the right one to use based on Platform string. if (Environment.OSVersion.Platform.ToString().Contains("Win32") || Environment.OSVersion.Platform.ToString().Contains("Win64")) { IsWindows = true; NativeMethods = GPGME.Native.Win32.NativeMethods.CreateWrapper(); } else { IsWindows = false; NativeMethods = GPGME.Native.Unix.NativeMethods.CreateWrapper(); if (USE_LFS_ON_UNIX) { // See GPGME manual: 2.3 Largefile Support (LFS) use_lfs = true; } } #if REQUIRE_GPGME_VERSION gpgme_version = new GpgmeVersion(CheckVersion(REQUIRE_GPGME)); #else gpgme_version = new GpgmeVersion(CheckVersion(null)); #endif }
internal static void InitLibgpgme() { if (Environment.OSVersion.Platform.ToString().Contains("Win32") || Environment.OSVersion.Platform.ToString().Contains("Win64")) { IsWindows = true; } else { IsWindows = false; if (USE_LFS_ON_UNIX) { // See GPGME manual: 2.3 Largefile Support (LFS) use_lfs = true; } } #if REQUIRE_GPGME_VERSION gpgme_version = new GpgmeVersion(CheckVersion(REQUIRE_GPGME)); #else gpgme_version = new GpgmeVersion(CheckVersion(null)); #endif }
internal static void InitLibgpgme() { if (Environment.OSVersion.Platform.ToString().Contains("Win32") || Environment.OSVersion.Platform.ToString().Contains("Win64")) { IsWindows = true; } else { IsWindows = false; if (USE_LFS_ON_UNIX) // See GPGME manual: 2.3 Largefile Support (LFS) use_lfs = true; } #if REQUIRE_GPGME_VERSION gpgme_version = new GpgmeVersion(CheckVersion(REQUIRE_GPGME)); #else gpgme_version = new GpgmeVersion(CheckVersion(null)); #endif }