Skip to content

Commit

Permalink
Merge pull request #12214 from JuliaLang/tk/fixmsvc
Browse files Browse the repository at this point in the history
Fix MSVC build
  • Loading branch information
tkelman committed Jul 20, 2015
2 parents 673bb86 + c63e3cc commit 298231e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/gc.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@
#endif
#endif

#ifdef __cplusplus
extern "C" {
#endif

// manipulating mark bits

#define GC_CLEAN 0 // freshly allocated
Expand Down Expand Up @@ -252,10 +256,6 @@ static void post_mark(arraylist_t *list, int dryrun);

#include "gc-debug.c"

#ifdef __cplusplus
extern "C" {
#endif

int jl_in_gc; // referenced from switchto task.c
static int jl_gc_finalizers_inhibited; // don't run finalizers during codegen #11956

Expand Down
3 changes: 3 additions & 0 deletions src/jl_uv.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@
#include <io.h>
#define write _write
#endif
#if defined(_COMPILER_MICROSOFT_) && !defined(_Static_assert)
#define _Static_assert static_assert
#endif

#ifdef __cplusplus
#include <cstring>
Expand Down

0 comments on commit 298231e

Please sign in to comment.