DELPHI跨平台编译开关

DELPHI跨平台编译开关

DELPHI 现在是跨平台的开发工具,已经不仅仅针对WINDOWS OS。

跨平台的时候,一些WINDOWS特有的API或语法是不能用的,必须使用跨平台的新语法,要用编译开关区分开来。

{$ifdef MSWINDOWS}
Windows;
{$endif}
{$ifdef POSIX}
Posix.Pthread;
{$endif}

原文地址:https://www.cnblogs.com/hnxxcxg/p/6634993.html