@@ -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
0 commit comments