Browse Source

+ {$hugecode on} for the graph unit in the large and huge i8086 memory models

git-svn-id: trunk@27616 -
nickysn 11 years ago
parent
commit
1fa0e64480
1 changed files with 6 additions and 0 deletions
  1. 6 0
      packages/graph/src/msdos/graph.pp

+ 6 - 0
packages/graph/src/msdos/graph.pp

@@ -15,6 +15,12 @@
 unit Graph;
 unit Graph;
 interface
 interface
 
 
+{ the code of the unit fits in 64kb in the medium memory model, but exceeds 64kb
+  in the large and huge memory models, so enable huge code in these models. }
+{$if defined(FPC_MM_LARGE) or defined(FPC_MM_HUGE)}
+  {$hugecode on}
+{$endif}
+
 {$i graphh.inc}
 {$i graphh.inc}
 {$i vesah.inc}
 {$i vesah.inc}