Skip to content

restore MSVC compatibility#10528

Merged
JeffBezanson merged 4 commits intomasterfrom
tk/msvc-fixes
Mar 19, 2015
Merged

restore MSVC compatibility#10528
JeffBezanson merged 4 commits intomasterfrom
tk/msvc-fixes

Conversation

@tkelman
Copy link
Copy Markdown
Contributor

@tkelman tkelman commented Mar 16, 2015

Speaks for itself I think. I probably need to rebuild the MSVC LLVM binaries that I had previously uploaded, since my hacky replacement for llvm-config doesn't seem to work any more.

tkelman added 3 commits March 16, 2015 00:35
declare vasprintf before using

use JL_GC_PUSH1 instead of JL_GC_PUSH, latter requires C99 vararg macros

use __alignof instead of __alignof__ for msvc

remove define for _isnan, no longer seems to be necessary

disable ASM_COPY_STACKS for MSVC

Don't include valgrind.h for MSVC

use _write instead of write
skip include of strings.h

don't do 0-size array workaround on msvc

8G array is too large for msvc

rearrange #ifdef MEMDEBUG to be outside of MARK macro expansion

use NOINLINE define instead of __attribute((noinline))

explicit cast on VirtualAlloc output

_BitScanForward takes a pointer to unsigned long, not int
Comment thread src/builtins.c
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

travis didn't complain, but should this have an #ifdef MSVC?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't think so, we have our own at src/support/asprintf.c that we use elsewhere, just not declared in this file yet.

@tkelman tkelman changed the title WIP: restore MSVC compatibility restore MSVC compatibility Mar 17, 2015
JeffBezanson added a commit that referenced this pull request Mar 19, 2015
@JeffBezanson JeffBezanson merged commit c6e77a4 into master Mar 19, 2015
@tkelman tkelman deleted the tk/msvc-fixes branch March 19, 2015 22:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants