diff options
author | marco <marco@3ad0048d-3df7-0310-abae-a5850022a9f2> | 2015-06-18 09:04:28 +0000 |
---|---|---|
committer | marco <marco@3ad0048d-3df7-0310-abae-a5850022a9f2> | 2015-06-18 09:04:28 +0000 |
commit | 743ca353db1eee597908bb8eeee64c8f1979915c (patch) | |
tree | 4381a3d961b333afb56ff8c60d4ad0abb513c67d /packages/ncurses | |
parent | 61e241352ae9ff629d5321d743963bce82285ab0 (diff) | |
download | fpc-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.pp | 5 | ||||
-rw-r--r-- | packages/ncurses/examples/t3form.pp | 5 | ||||
-rw-r--r-- | packages/ncurses/examples/tclock.pp | 5 | ||||
-rw-r--r-- | packages/ncurses/examples/tnlshello.pp | 5 |
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 |