summaryrefslogtreecommitdiff
path: root/compiler/ptconst.pas
diff options
context:
space:
mode:
authorjonas <jonas@3ad0048d-3df7-0310-abae-a5850022a9f2>2008-11-01 18:38:32 +0000
committerjonas <jonas@3ad0048d-3df7-0310-abae-a5850022a9f2>2008-11-01 18:38:32 +0000
commite61fea438da4f0aa42381f37b5922bc6158c7460 (patch)
tree91aa3e8ed305223219829a3c69677d7b1871ddf4 /compiler/ptconst.pas
parent58f878ee181a28414025bcb4194fbbaf181dcf9d (diff)
downloadfpc-e61fea438da4f0aa42381f37b5922bc6158c7460.tar.gz
+ "weakexternal" support for imported procedures and variables.
the syntax is exactly the same as for "external", except for the keyword. It is currently only active for Darwin targets. It should also work at least for Linux targets, but only with the GNU assembler (which is why it is not activated there) + test for this functionality git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@12009 3ad0048d-3df7-0310-abae-a5850022a9f2
Diffstat (limited to 'compiler/ptconst.pas')
-rw-r--r--compiler/ptconst.pas2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/ptconst.pas b/compiler/ptconst.pas
index feb01f2411..dbdf53ecbf 100644
--- a/compiler/ptconst.pas
+++ b/compiler/ptconst.pas
@@ -1371,7 +1371,7 @@ implementation
if (
(
(token = _ID) and
- (idtoken in [_EXPORT,_EXTERNAL,_PUBLIC,_CVAR]) and
+ (idtoken in [_EXPORT,_EXTERNAL,_WEAKEXTERNAL,_PUBLIC,_CVAR]) and
(m_cvar_support in current_settings.modeswitches)
) or
(