mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-14 13:09:22 +02:00
* give a compiler error when attempting to compile these units for any
platform other than Linux/i386, so that people trying to manually compile them will be informed about the fact that these units will break in various ways on non-Linux/i386 git-svn-id: trunk@14567 -
This commit is contained in:
parent
c1f3d8dcaa
commit
7ce1c94cc5
@ -1,5 +1,10 @@
|
|||||||
{$mode objfpc}
|
{$mode objfpc}
|
||||||
{$h+}
|
{$h+}
|
||||||
|
|
||||||
|
{$if not defined(linux) or not defined(cpui386)}
|
||||||
|
{$error The KernelDefs unit is a legacy Kylix-compatibility unit that is only supported on Linux/i386. It is known not to work in various ways on other OSes and architectures (including Linux/x86_64). }
|
||||||
|
{$endif}
|
||||||
|
|
||||||
unit kerneldefs;
|
unit kerneldefs;
|
||||||
|
|
||||||
interface
|
interface
|
||||||
|
@ -1,6 +1,10 @@
|
|||||||
{$mode objfpc}
|
{$mode objfpc}
|
||||||
{$h+}
|
{$h+}
|
||||||
|
|
||||||
|
{$if not defined(linux) or not defined(cpui386)}
|
||||||
|
{$error The KernelIoctl unit is a legacy Kylix-compatibility unit that is only supported on Linux/i386. It is known not to work in various ways on other OSes and architectures (including Linux/x86_64). }
|
||||||
|
{$endif}
|
||||||
|
|
||||||
Unit kernelioctl;
|
Unit kernelioctl;
|
||||||
|
|
||||||
Interface
|
Interface
|
||||||
|
@ -1,6 +1,11 @@
|
|||||||
{$mode objfpc}
|
{$mode objfpc}
|
||||||
{$inline on}
|
{$inline on}
|
||||||
{$h+}
|
{$h+}
|
||||||
|
|
||||||
|
{$if not defined(linux) or not defined(cpui386)}
|
||||||
|
{$error The KernelDefs unit is a legacy Kylix-compatibility unit that is only supported on Linux/i386. It is known not to work in various ways on other OSes and architectures (including Linux/x86_64). }
|
||||||
|
{$endif}
|
||||||
|
|
||||||
unit libc;
|
unit libc;
|
||||||
|
|
||||||
Interface
|
Interface
|
||||||
|
Loading…
Reference in New Issue
Block a user