From 1fa0e6448049072c4ff8aef7b0f26d536a48f7e8 Mon Sep 17 00:00:00 2001
From: nickysn <nickysn@gmail.com>
Date: Sun, 20 Apr 2014 19:11:09 +0000
Subject: [PATCH] + {$hugecode on} for the graph unit in the large and huge
 i8086 memory models

git-svn-id: trunk@27616 -
---
 packages/graph/src/msdos/graph.pp | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/packages/graph/src/msdos/graph.pp b/packages/graph/src/msdos/graph.pp
index 535e50992d..6c07d470b1 100644
--- a/packages/graph/src/msdos/graph.pp
+++ b/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}