projects
/
ghc-hetmet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
e0546be
)
[project @ 2004-10-18 11:46:46 by simonmar]
author
simonmar
<unknown>
Mon, 18 Oct 2004 11:46:46 +0000
(11:46 +0000)
committer
simonmar
<unknown>
Mon, 18 Oct 2004 11:46:46 +0000
(11:46 +0000)
ccallConvAttribute: use __attribute__((__stdcall__)) rather than
__stdcall (the latter is Win32-specific).
ghc/compiler/prelude/ForeignCall.lhs
patch
|
blob
|
history
diff --git
a/ghc/compiler/prelude/ForeignCall.lhs
b/ghc/compiler/prelude/ForeignCall.lhs
index
12b85b1
..
2c90a7d
100644
(file)
--- a/
ghc/compiler/prelude/ForeignCall.lhs
+++ b/
ghc/compiler/prelude/ForeignCall.lhs
@@
-149,7
+149,7
@@
calling convention (used by PprAbsC):
\begin{code}
ccallConvAttribute :: CCallConv -> String
-ccallConvAttribute StdCallConv = "__stdcall"
+ccallConvAttribute StdCallConv = "__attribute__((__stdcall__))"
ccallConvAttribute CCallConv = ""
\end{code}