summaryrefslogtreecommitdiff
path: root/packages/ncurses
diff options
context:
space:
mode:
authormarco <marco@3ad0048d-3df7-0310-abae-a5850022a9f2>2015-06-18 09:04:28 +0000
committermarco <marco@3ad0048d-3df7-0310-abae-a5850022a9f2>2015-06-18 09:04:28 +0000
commit743ca353db1eee597908bb8eeee64c8f1979915c (patch)
tree4381a3d961b333afb56ff8c60d4ad0abb513c67d /packages/ncurses
parent61e241352ae9ff629d5321d743963bce82285ab0 (diff)
downloadfpc-743ca353db1eee597908bb8eeee64c8f1979915c.tar.gz
* link to libc using initc instead of manual $linklib.
Allows to change name of libc library and $linklib in one place. git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@31115 3ad0048d-3df7-0310-abae-a5850022a9f2
Diffstat (limited to 'packages/ncurses')
-rw-r--r--packages/ncurses/examples/t2form.pp5
-rw-r--r--packages/ncurses/examples/t3form.pp5
-rw-r--r--packages/ncurses/examples/tclock.pp5
-rw-r--r--packages/ncurses/examples/tnlshello.pp5
4 files changed, 8 insertions, 12 deletions
diff --git a/packages/ncurses/examples/t2form.pp b/packages/ncurses/examples/t2form.pp
index 7b5f1e4f38..b563189558 100644
--- a/packages/ncurses/examples/t2form.pp
+++ b/packages/ncurses/examples/t2form.pp
@@ -3,11 +3,10 @@ program form_test_2;
{$MODE OBJFPC}
uses
- ncurses, form;
+ ncurses, form, initc;
-{$linklib c}
-procedure setlocale(cat : integer; p : pchar); cdecl; external 'c';
+procedure setlocale(cat : integer; p : pchar); cdecl; external clib;
const
diff --git a/packages/ncurses/examples/t3form.pp b/packages/ncurses/examples/t3form.pp
index 1aeadad579..3b298fcbaf 100644
--- a/packages/ncurses/examples/t3form.pp
+++ b/packages/ncurses/examples/t3form.pp
@@ -6,10 +6,9 @@ program form_test_3;
{$MODE OBJFPC}
uses
- ncurses, form;
+ ncurses, form, initc;
-{$linklib c}
-procedure setlocale(cat : integer; p : pchar); cdecl; external 'c';
+procedure setlocale(cat : integer; p : pchar); cdecl; external clib;
const
diff --git a/packages/ncurses/examples/tclock.pp b/packages/ncurses/examples/tclock.pp
index cfa0371779..dc88b3724b 100644
--- a/packages/ncurses/examples/tclock.pp
+++ b/packages/ncurses/examples/tclock.pp
@@ -2,10 +2,9 @@ program tclock;
{$MODE OBJFPC}
uses
- ncurses, sysutils;
+ ncurses, sysutils, initc;
-{$linklib c}
-procedure setlocale(cat : integer; p : pchar); cdecl; external 'c';
+procedure setlocale(cat : integer; p : pchar); cdecl; external clib;
const
diff --git a/packages/ncurses/examples/tnlshello.pp b/packages/ncurses/examples/tnlshello.pp
index b26951cba5..d121e7d657 100644
--- a/packages/ncurses/examples/tnlshello.pp
+++ b/packages/ncurses/examples/tnlshello.pp
@@ -8,10 +8,9 @@ program nlshello;
{$mode objfpc}
uses
- gettext, ncurses;
+ gettext, ncurses, initc;
-{$linklib c}
-procedure setlocale(cat : integer; p : pchar); cdecl; external 'c';
+procedure setlocale(cat : integer; p : pchar); cdecl; external clib;
const