File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ typedef struct {
43
43
};
44
44
// Work around a bug affecting gcc up to (at least) version 4.4.7
45
45
// https://gcc.gnu.org/bugzilla/show_bug.cgi?id=36839
46
- #ifndef _MSC_VER
46
+ #if !defined( _COMPILER_MICROSOFT_ )
47
47
int _dummy [0 ];
48
48
#endif
49
49
char data [];
@@ -84,7 +84,7 @@ typedef struct _gcpage_t {
84
84
85
85
// contiguous storage for up to REGION_PG_COUNT naturally aligned GC_PAGE_SZ blocks
86
86
// uses a very naive allocator (see malloc_page & free_page)
87
- #if defined(_P64 ) && !defined(_MSC_VER )
87
+ #if defined(_P64 ) && !defined(_COMPILER_MICROSOFT_ )
88
88
#define REGION_PG_COUNT 16*8*4096 // 8G because virtual memory is cheap
89
89
#else
90
90
#define REGION_PG_COUNT 8*4096 // 512M
@@ -515,9 +515,9 @@ static NOINLINE void *malloc_page(void)
515
515
if (heaps_ub [heap_i ] < i )
516
516
heaps_ub [heap_i ] = i ;
517
517
518
- #ifdef __MINGW32__
518
+ #if defined( _COMPILER_MINGW_ )
519
519
int j = __builtin_ffs (heap -> freemap [i ]) - 1 ;
520
- #elif _MSC_VER
520
+ #elif defined( _COMPILER_MICROSOFT_ )
521
521
unsigned long j ;
522
522
_BitScanForward (& j , heap -> freemap [i ]);
523
523
#else
You can’t perform that action at this time.
0 commit comments