mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-15 06:44:10 +02:00
Linux fix
This commit is contained in:
parent
7de7245b33
commit
d39450b3ab
2 changed files with 6 additions and 4 deletions
|
@ -137,20 +137,18 @@ namespace System.FFI
|
||||||
#if BF_PLATFORM_WINDOWS
|
#if BF_PLATFORM_WINDOWS
|
||||||
|
|
||||||
#if BF_64_BIT
|
#if BF_64_BIT
|
||||||
|
[AllowDuplicates]
|
||||||
enum FFIABI : int32
|
enum FFIABI : int32
|
||||||
{
|
{
|
||||||
NotSet = 0,
|
NotSet = 0,
|
||||||
StdCall = 1,
|
StdCall = 1,
|
||||||
#unwarn
|
|
||||||
ThisCall = 1,
|
ThisCall = 1,
|
||||||
#unwarn
|
|
||||||
FastCall = 1,
|
FastCall = 1,
|
||||||
#unwarn
|
|
||||||
MS_CDecl = 1,
|
MS_CDecl = 1,
|
||||||
#unwarn
|
|
||||||
Default = 1
|
Default = 1
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
|
[AllowDuplicates]
|
||||||
enum FFIABI : int32
|
enum FFIABI : int32
|
||||||
{
|
{
|
||||||
NotSet = 0,
|
NotSet = 0,
|
||||||
|
@ -167,6 +165,7 @@ namespace System.FFI
|
||||||
#else //!BF_PLATFORM_WINDOWS
|
#else //!BF_PLATFORM_WINDOWS
|
||||||
|
|
||||||
#if BF_64_BIT
|
#if BF_64_BIT
|
||||||
|
[AllowDuplicates]
|
||||||
enum FFIABI : int32
|
enum FFIABI : int32
|
||||||
{
|
{
|
||||||
NotSet = 0,
|
NotSet = 0,
|
||||||
|
@ -175,6 +174,7 @@ namespace System.FFI
|
||||||
Default = Unix64
|
Default = Unix64
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
|
[AllowDuplicates]
|
||||||
enum FFIABI : int32
|
enum FFIABI : int32
|
||||||
{
|
{
|
||||||
NotSet = 0,
|
NotSet = 0,
|
||||||
|
|
|
@ -10175,7 +10175,9 @@ namespace IDE
|
||||||
Environment.GetExecutableFilePath(exeFilePath);
|
Environment.GetExecutableFilePath(exeFilePath);
|
||||||
mVersionInfo = new .();
|
mVersionInfo = new .();
|
||||||
mVersionInfo.GetVersionInfo(exeFilePath).IgnoreError();
|
mVersionInfo.GetVersionInfo(exeFilePath).IgnoreError();
|
||||||
|
#if BF_PLATFORM_WINDOWS
|
||||||
exeTime = File.GetLastWriteTime(exeFilePath).GetValueOrDefault();
|
exeTime = File.GetLastWriteTime(exeFilePath).GetValueOrDefault();
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
return mVersionInfo;
|
return mVersionInfo;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue