File tree Expand file tree Collapse file tree 4 files changed +7
-6
lines changed Expand file tree Collapse file tree 4 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -294,11 +294,6 @@ if(CLR_CMAKE_PLATFORM_XPLAT)
294
294
295
295
set (CMAKE_CXX_STANDARD 11 )
296
296
297
- # CC WARNING FLAGS
298
- set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} \
299
- -Wno-implicit-function-declaration"
300
- )
301
-
302
297
# todo: fix general visibility of the interface
303
298
# do not set to `fvisibility=hidden` as it is going to
304
299
# prevent the required interface is being exported
@@ -330,7 +325,6 @@ if(CLR_CMAKE_PLATFORM_XPLAT)
330
325
-Wno-null-conversion\
331
326
-Wno-return-type\
332
327
-Wno-switch\
333
- -Wno-implicit-function-declaration\
334
328
-Wno-int-to-pointer-cast\
335
329
-Wno-tautological-constant-compare\
336
330
-Wno-enum-compare-switch\
Original file line number Diff line number Diff line change 4
4
// -------------------------------------------------------------------------------------------------------
5
5
6
6
#include " Backend.h"
7
+ #include " CommonPal.h"
7
8
#ifdef ENABLE_SCRIPT_DEBUGGING
8
9
#include " Debug/DebuggingFlags.h"
9
10
#include " Debug/DiagProbe.h"
Original file line number Diff line number Diff line change @@ -516,6 +516,8 @@ __forceinline void * _AddressOfReturnAddress()
516
516
{
517
517
return (void *)((char *) __builtin_frame_address (0 ) + sizeof (void *));
518
518
}
519
+ #else
520
+ extern " C" void * _AddressOfReturnAddress (void );
519
521
#endif
520
522
#else
521
523
#error _AddressOfReturnAddress and _ReturnAddress not defined for this platform
Original file line number Diff line number Diff line change @@ -47,6 +47,10 @@ Module Name:
47
47
#include < ctype.h>
48
48
#endif
49
49
50
+ #if !defined(static_assert)
51
+ #define static_assert _Static_assert
52
+ #endif
53
+
50
54
#if defined(__APPLE__)
51
55
#ifndef __IOS__
52
56
#include " TargetConditionals.h"
You can’t perform that action at this time.
0 commit comments