Răsfoiți Sursa

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

git-svn-id: trunk@27616 -
nickysn 11 ani în urmă
părinte
comite
1fa0e64480
1 a modificat fișierele cu 6 adăugiri și 0 ștergeri
  1. 6 0
      packages/graph/src/msdos/graph.pp

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

@@ -15,6 +15,12 @@
 unit Graph;
 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 vesah.inc}