Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
GHC
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
4,323
Issues
4,323
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
376
Merge Requests
376
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Glasgow Haskell Compiler
GHC
Commits
5e4597f7
Commit
5e4597f7
authored
Nov 18, 2009
by
Ben.Lippmeier@anu.edu.au
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Windows DLLs: Don't rely on stg/DLL.h being included in RtsAPI.h
parent
a8d8c534
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
14 deletions
+13
-14
includes/RtsAPI.h
includes/RtsAPI.h
+13
-7
includes/stg/DLL.h
includes/stg/DLL.h
+0
-7
No files found.
includes/RtsAPI.h
View file @
5e4597f7
...
...
@@ -162,13 +162,19 @@ rts_getSchedStatus (Capability *cap);
These are used by foreign export and foreign import "wrapper" stubs.
----------------------------------------------------------------------- */
// When producing Windows DLLs the compiler needs to know which symbols
// are in the local package/DLL vs external ones.
// DLL_IMPORT_BASE expands to __declspec(dllimport) when we're not compiling
// the the base package.
DLL_IMPORT_BASE
extern
StgWord
base_GHCziTopHandler_runIO_closure
[];
DLL_IMPORT_BASE
extern
StgWord
base_GHCziTopHandler_runNonIO_closure
[];
// When producing Windows DLLs the we need to know which symbols are in the
// local package/DLL vs external ones.
//
// Note that RtsAPI.h is also included by foreign export stubs in
// the base package itself.
//
#if defined(mingw32_TARGET_OS) && defined(__PIC__) && !defined(COMPILING_BASE_PACKAGE)
__declspec
(
dllimport
)
extern
StgWord
base_GHCziTopHandler_runIO_closure
[];
__declspec
(
dllimport
)
extern
StgWord
base_GHCziTopHandler_runNonIO_closure
[];
#else
extern
StgWord
base_GHCziTopHandler_runIO_closure
[];
extern
StgWord
base_GHCziTopHandler_runNonIO_closure
[];
#endif
#define runIO_closure base_GHCziTopHandler_runIO_closure
#define runNonIO_closure base_GHCziTopHandler_runNonIO_closure
...
...
includes/stg/DLL.h
View file @
5e4597f7
...
...
@@ -53,13 +53,6 @@
#endif
#ifdef COMPILING_BASE_PACKAGE
# define DLL_IMPORT_BASE
#else
# define DLL_IMPORT_BASE DLLIMPORT
#endif
#ifdef COMPILING_STDLIB
#define DLL_IMPORT_STDLIB
#else
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment