* Use macro to fix compilation on fpc-versions without constref support
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@1352 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
parent
409a5f8ba7
commit
2bfd352b06
@ -42,6 +42,10 @@ unit GeckoBrowser;
|
||||
{$DEFINE extdecl:=cdecl}
|
||||
{$ENDIF}
|
||||
|
||||
{$IFNDEF FPC_HAS_CONSTREF}
|
||||
{$DEFINE constref:=const}
|
||||
{$ENDIF}
|
||||
|
||||
{$IFDEF LCLCocoa}
|
||||
{$MODESWITCH ObjectiveC1}
|
||||
{$ENDIF}
|
||||
|
@ -42,6 +42,10 @@ unit GeckoChromeWindow;
|
||||
{$DEFINE extdecl:=cdecl}
|
||||
{$ENDIF}
|
||||
|
||||
{$IFNDEF FPC_HAS_CONSTREF}
|
||||
{$DEFINE constref:=const}
|
||||
{$ENDIF}
|
||||
|
||||
{$IFDEF LCLCocoa}
|
||||
{$MODESWITCH ObjectiveC1}
|
||||
{$ENDIF}
|
||||
|
@ -8,6 +8,10 @@ unit nsXPCOM_safe17;
|
||||
{$DEFINE extdecl:=cdecl}
|
||||
{$ENDIF}
|
||||
|
||||
{$IFNDEF FPC_HAS_CONSTREF}
|
||||
{$DEFINE constref:=const}
|
||||
{$ENDIF}
|
||||
|
||||
interface
|
||||
|
||||
uses
|
||||
|
@ -8,6 +8,10 @@ unit nsXPCOM_safe18;
|
||||
{$DEFINE extdecl:=cdecl}
|
||||
{$ENDIF}
|
||||
|
||||
{$IFNDEF FPC_HAS_CONSTREF}
|
||||
{$DEFINE constref:=const}
|
||||
{$ENDIF}
|
||||
|
||||
interface
|
||||
|
||||
uses
|
||||
|
@ -8,6 +8,10 @@ unit nsXPCOM_safe19;
|
||||
{$DEFINE extdecl:=cdecl}
|
||||
{$ENDIF}
|
||||
|
||||
{$IFNDEF FPC_HAS_CONSTREF}
|
||||
{$DEFINE constref:=const}
|
||||
{$ENDIF}
|
||||
|
||||
interface
|
||||
|
||||
uses
|
||||
|
@ -8,6 +8,10 @@ unit nsXPCOM_std17;
|
||||
{$DEFINE extdecl:=cdecl}
|
||||
{$ENDIF}
|
||||
|
||||
{$IFNDEF FPC_HAS_CONSTREF}
|
||||
{$DEFINE constref:=const}
|
||||
{$ENDIF}
|
||||
|
||||
interface
|
||||
|
||||
uses
|
||||
|
@ -8,6 +8,10 @@ unit nsXPCOM_std18;
|
||||
{$DEFINE extdecl:=cdecl}
|
||||
{$ENDIF}
|
||||
|
||||
{$IFNDEF FPC_HAS_CONSTREF}
|
||||
{$DEFINE constref:=const}
|
||||
{$ENDIF}
|
||||
|
||||
interface
|
||||
|
||||
uses
|
||||
|
@ -8,6 +8,10 @@ unit nsXPCOM_std19;
|
||||
{$DEFINE extdecl:=cdecl}
|
||||
{$ENDIF}
|
||||
|
||||
{$IFNDEF FPC_HAS_CONSTREF}
|
||||
{$DEFINE constref:=const}
|
||||
{$ENDIF}
|
||||
|
||||
interface
|
||||
|
||||
uses
|
||||
|
@ -42,6 +42,10 @@ unit nsInit;
|
||||
{$DEFINE extdecl:=cdecl}
|
||||
{$ENDIF}
|
||||
|
||||
{$IFNDEF FPC_HAS_CONSTREF}
|
||||
{$DEFINE constref:=const}
|
||||
{$ENDIF}
|
||||
|
||||
interface
|
||||
|
||||
uses
|
||||
|
@ -8,6 +8,10 @@ unit nsXPCOM;
|
||||
{$DEFINE extdecl:=cdecl}
|
||||
{$ENDIF}
|
||||
|
||||
{$IFNDEF FPC_HAS_CONSTREF}
|
||||
{$DEFINE constref:=const}
|
||||
{$ENDIF}
|
||||
|
||||
interface
|
||||
|
||||
uses
|
||||
|
@ -36,6 +36,12 @@
|
||||
* ***** END LICENSE BLOCK ***** *)
|
||||
unit nsXPCOMGlue;
|
||||
|
||||
{$MACRO on}
|
||||
|
||||
{$IFNDEF FPC_HAS_CONSTREF}
|
||||
{$DEFINE constref:=const}
|
||||
{$ENDIF}
|
||||
|
||||
interface
|
||||
|
||||
uses
|
||||
|
Loading…
Reference in New Issue
Block a user