Skip to content

Commit

Permalink
Removed crt dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
XusinboyBekchanov committed Mar 8, 2021
1 parent 063b7c8 commit e52809a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
7 changes: 6 additions & 1 deletion mff/Application.bas
Expand Up @@ -93,6 +93,9 @@ Namespace My
Dim As Integer L, i, k
#ifdef __FB_WIN32__
L = GetModuleFileName(GetModuleHandle(NULL), Tx, 255)
#else
Tx = Command(0)
L = Len(Tx)
#endif
s = Left(Tx, L)
For i = 0 To Len(s)
Expand All @@ -111,7 +114,9 @@ Namespace My
Dim As Integer L
#ifndef __FB_WIN32__
Dim As ZString * 255 Tx
L = readlink("/proc/self/exe", @Tx, 255 - 1)
'L = readlink("/proc/self/exe", @Tx, 255 - 1)
Tx = Command(0)
L = Len(Tx)
#else
Dim As WString * 255 Tx
L = GetModuleFileName(GetModuleHandle(NULL), @Tx, 255 - 1)
Expand Down
3 changes: 0 additions & 3 deletions mff/Application.bi
Expand Up @@ -13,9 +13,6 @@

#include once "WStringList.bi"
#include once "Control.bi"
#ifndef __FB_WIN32__
#include once "crt/linux/unistd.bi"
#endif
#ifdef __USE_GTK__
#include once "gmodule.bi"
#else
Expand Down

0 comments on commit e52809a

Please sign in to comment.