Skip to content

Commit d95eaff

Browse files
committed
1 parent 689099f commit d95eaff

File tree

3 files changed

+17
-7
lines changed

3 files changed

+17
-7
lines changed

PythonForDelphi/Components/Sources/Core/PythonEngine.pas

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,16 @@ interface
8989
Variants,
9090
MethodCallBack;
9191

92+
{$IF not Defined(FPC) and (CompilerVersion >= 23)}
93+
const
94+
{$IF CompilerVersion >= 33}
95+
pidSupportedPlatforms = pidWin32 or pidWin64 or pidOSX32 or pidOSX64 or pidLinux64;
96+
{$ELSE}
97+
pidSupportedPlatforms = pidWin32 or pidWin64 or pidOSX32;
98+
{$IFEND}
99+
{$IFEND}
100+
101+
92102
//#######################################################
93103
//## ##
94104
//## PYTHON specific constants ##
@@ -1375,7 +1385,7 @@ EPyWindowsError = class (EPyOSError);
13751385
TIOStringList = TStringList;
13761386

13771387
{$IF not Defined(FPC) and (CompilerVersion >= 23)}
1378-
[ComponentPlatformsAttribute(pidAllPlatforms)]
1388+
[ComponentPlatformsAttribute(pidSupportedPlatforms)]
13791389
{$IFEND}
13801390
TPythonInputOutput = class(TComponent)
13811391
protected
@@ -2123,7 +2133,7 @@ TPythonTraceback = class
21232133
end;
21242134

21252135
{$IF not Defined(FPC) and (CompilerVersion >= 23)}
2126-
[ComponentPlatformsAttribute(pidAllPlatforms)]
2136+
[ComponentPlatformsAttribute(pidSupportedPlatforms)]
21272137
{$IFEND}
21282138
TPythonEngine = class(TPythonInterface)
21292139
private
@@ -2600,7 +2610,7 @@ TErrors = class(TCollection)
26002610
end;
26012611

26022612
{$IF not Defined(FPC) and (CompilerVersion >= 23)}
2603-
[ComponentPlatformsAttribute(pidAllPlatforms)]
2613+
[ComponentPlatformsAttribute(pidSupportedPlatforms)]
26042614
{$IFEND}
26052615
TPythonModule = class(TMethodsContainer)
26062616
protected
@@ -2866,7 +2876,7 @@ TTypeServices = class(TPersistent)
28662876
// The component that initializes the Python type and
28672877
// that creates instances of itself.
28682878
{$IF not Defined(FPC) and (CompilerVersion >= 23)}
2869-
[ComponentPlatformsAttribute(pidAllPlatforms)]
2879+
[ComponentPlatformsAttribute(pidSupportedPlatforms)]
28702880
{$IFEND}
28712881
TPythonType = class(TGetSetContainer)
28722882
protected
@@ -2954,7 +2964,7 @@ TPythonType = class(TGetSetContainer)
29542964
TExtSetDataEvent = procedure ( Sender : TObject; Data : PPyObject) of Object;
29552965

29562966
{$IF not Defined(FPC) and (CompilerVersion >= 23)}
2957-
[ComponentPlatformsAttribute(pidAllPlatforms)]
2967+
[ComponentPlatformsAttribute(pidSupportedPlatforms)]
29582968
{$IFEND}
29592969
TPythonDelphiVar = class( TEngineClient )
29602970
protected

PythonForDelphi/Components/Sources/Core/WrapDelphi.pas

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -752,7 +752,7 @@ TRegisteredUnits = class
752752
Method EventHandlers.RegisterHandler can be used to add event handling functionality
753753
}
754754
{$IF not Defined(FPC) and (CompilerVersion >= 23)}
755-
[ComponentPlatformsAttribute(pidAllPlatforms)]
755+
[ComponentPlatformsAttribute(pidSupportedPlatforms)]
756756
{$IFEND}
757757
TPyDelphiWrapper = class(TEngineClient, IFreeNotificationSubscriber)
758758
private

PythonForDelphi/Components/Sources/VCL/PythonDatabase.pas

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ interface
2222
uses Classes, PythonEngine;
2323
type
2424
{$IF not Defined(FPC) and (CompilerVersion >= 23)}
25-
[ComponentPlatformsAttribute(pidAllPlatforms)]
25+
[ComponentPlatformsAttribute(pidSupportedPlatforms)]
2626
{$IFEND}
2727
TPythonDatabase = class(TEngineClient)
2828
protected

0 commit comments

Comments
 (0)