Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
Cabal
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Contributor analytics
CI/CD analytics
Repository analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Glasgow Haskell Compiler
Packages
Cabal
Commits
bbf27fed
Commit
bbf27fed
authored
9 years ago
by
Mikhail Glushenkov
Browse files
Options
Downloads
Plain Diff
Merge pull request #3106 from Heather/ifdef
cbits: WIN32 guard for wider range of compilers
parents
09a71929
fcaf5d02
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
cabal-install/cbits/getnumcores.c
+2
-2
2 additions, 2 deletions
cabal-install/cbits/getnumcores.c
with
2 additions
and
2 deletions
cabal-install/cbits/getnumcores.c
+
2
−
2
View file @
bbf27fed
...
...
@@ -8,7 +8,7 @@
#ifndef HAS_GET_NUMBER_OF_PROCESSORS
#ifdef
_WIN32
#if
def
ined(WIN32) || defined(_WIN32) || defined(__WIN32) && !defined(__CYGWIN__)
#include
<windows.h>
#elif MACOS
#include
<sys/param.h>
...
...
@@ -18,7 +18,7 @@
#endif
int
getNumberOfProcessors
()
{
#ifdef
WIN32
#if
def
ined(WIN32) || defined(_WIN32) || defined(__WIN32) && !defined(__CYGWIN__)
SYSTEM_INFO
sysinfo
;
GetSystemInfo
(
&
sysinfo
);
return
sysinfo
.
dwNumberOfProcessors
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment