summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorgraemeg <graemeg@ae50a9b5-8222-0410-bf8d-8a13f76226bf>2008-02-01 09:10:03 +0000
committergraemeg <graemeg@ae50a9b5-8222-0410-bf8d-8a13f76226bf>2008-02-01 09:10:03 +0000
commit9df85af6e12f28ca97df403f981728cf60fc3249 (patch)
tree52297157886806a716e2d3506c1f9f2d667d32d0 /src/gui
parent352a0d6eb4320cf3c6cabffb27f93f285a8bfeb9 (diff)
downloadfpGUI-9df85af6e12f28ca97df403f981728cf60fc3249.tar.xz
* Fixed the IFDEF so that the libc unit is only included for Linux/x86 32-bit systems. FreeBSD and Linux/x86 64-bit can't use libc.
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/gui_grid.pas14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/gui/gui_grid.pas b/src/gui/gui_grid.pas
index 4ae2a08d..36b71b06 100644
--- a/src/gui/gui_grid.pas
+++ b/src/gui/gui_grid.pas
@@ -222,7 +222,7 @@ uses
,Windows // Graeme: temporary, just to see how the grid looks under Windows.
{$ENDIF}
{$IFDEF UNIX}
- {$IFDEF LINUX},libc{$ENDIF} // Graeme: temporary. libc is not available for FreeBSD.
+ {$if defined(linux) and defined(cpu386)},libc{$endif} // Graeme: temporary. libc is not available for FreeBSD.
,baseunix
{$ENDIF}
;
@@ -299,7 +299,7 @@ begin
end;
{$IFDEF UNIX}
-{$IFDEF LINUX}
+{$if defined(linux) and defined(cpu386)}
function GetGroupName(gid: integer): string;
var
p: PGroup;
@@ -308,15 +308,15 @@ begin
if p <> nil then
result := p^.gr_name;
end;
-{$ELSE}
+{$else}
// Still need to find an alternative for FreeBSD as we can't use the libc unit.
function GetGroupName(gid: integer): string;
begin
result := IntToStr(gid);
end;
-{$ENDIF}
+{$endif}
-{$IFDEF LINUX}
+{$if defined(linux) and defined(cpu386)}
function GetUserName(uid: integer): string;
var
p: PPasswd;
@@ -327,13 +327,13 @@ begin
else
result := '';
end;
-{$ELSE}
+{$else}
// Still need to find an alternative for FreeBSD as we can't use the libc unit.
function GetUserName(uid: integer): string;
begin
result := IntToStr(uid);
end;
-{$ENDIF LINUX}
+{$endif}
{$ENDIF UNIX}