* 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:
Loesje_ 2010-10-15 19:18:55 +00:00
parent 409a5f8ba7
commit 2bfd352b06
11 changed files with 46 additions and 0 deletions

View File

@ -42,6 +42,10 @@ unit GeckoBrowser;
{$DEFINE extdecl:=cdecl}
{$ENDIF}
{$IFNDEF FPC_HAS_CONSTREF}
{$DEFINE constref:=const}
{$ENDIF}
{$IFDEF LCLCocoa}
{$MODESWITCH ObjectiveC1}
{$ENDIF}

View File

@ -42,6 +42,10 @@ unit GeckoChromeWindow;
{$DEFINE extdecl:=cdecl}
{$ENDIF}
{$IFNDEF FPC_HAS_CONSTREF}
{$DEFINE constref:=const}
{$ENDIF}
{$IFDEF LCLCocoa}
{$MODESWITCH ObjectiveC1}
{$ENDIF}

View File

@ -8,6 +8,10 @@ unit nsXPCOM_safe17;
{$DEFINE extdecl:=cdecl}
{$ENDIF}
{$IFNDEF FPC_HAS_CONSTREF}
{$DEFINE constref:=const}
{$ENDIF}
interface
uses

View File

@ -8,6 +8,10 @@ unit nsXPCOM_safe18;
{$DEFINE extdecl:=cdecl}
{$ENDIF}
{$IFNDEF FPC_HAS_CONSTREF}
{$DEFINE constref:=const}
{$ENDIF}
interface
uses

View File

@ -8,6 +8,10 @@ unit nsXPCOM_safe19;
{$DEFINE extdecl:=cdecl}
{$ENDIF}
{$IFNDEF FPC_HAS_CONSTREF}
{$DEFINE constref:=const}
{$ENDIF}
interface
uses

View File

@ -8,6 +8,10 @@ unit nsXPCOM_std17;
{$DEFINE extdecl:=cdecl}
{$ENDIF}
{$IFNDEF FPC_HAS_CONSTREF}
{$DEFINE constref:=const}
{$ENDIF}
interface
uses

View File

@ -8,6 +8,10 @@ unit nsXPCOM_std18;
{$DEFINE extdecl:=cdecl}
{$ENDIF}
{$IFNDEF FPC_HAS_CONSTREF}
{$DEFINE constref:=const}
{$ENDIF}
interface
uses

View File

@ -8,6 +8,10 @@ unit nsXPCOM_std19;
{$DEFINE extdecl:=cdecl}
{$ENDIF}
{$IFNDEF FPC_HAS_CONSTREF}
{$DEFINE constref:=const}
{$ENDIF}
interface
uses

View File

@ -42,6 +42,10 @@ unit nsInit;
{$DEFINE extdecl:=cdecl}
{$ENDIF}
{$IFNDEF FPC_HAS_CONSTREF}
{$DEFINE constref:=const}
{$ENDIF}
interface
uses

View File

@ -8,6 +8,10 @@ unit nsXPCOM;
{$DEFINE extdecl:=cdecl}
{$ENDIF}
{$IFNDEF FPC_HAS_CONSTREF}
{$DEFINE constref:=const}
{$ENDIF}
interface
uses

View File

@ -36,6 +36,12 @@
* ***** END LICENSE BLOCK ***** *)
unit nsXPCOMGlue;
{$MACRO on}
{$IFNDEF FPC_HAS_CONSTREF}
{$DEFINE constref:=const}
{$ENDIF}
interface
uses