File tree 1 file changed +8
-2
lines changed
1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change 24
24
#define COMPILER_RT_ALWAYS_INLINE __forceinline
25
25
#define COMPILER_RT_CLEANUP (x )
26
26
#elif __GNUC__
27
- #define COMPILER_RT_ALIGNAS (x ) __attribute__((aligned(x)))
27
+ #ifdef _WIN32
28
+ #define COMPILER_RT_FTRUNCATE (f , l ) _chsize(fileno(f), l)
29
+ #define COMPILER_RT_VISIBILITY
30
+ #define COMPILER_RT_WEAK __attribute__((selectany))
31
+ #else
32
+ #define COMPILER_RT_FTRUNCATE (f , l ) ftruncate(fileno(f), l)
28
33
#define COMPILER_RT_VISIBILITY __attribute__((visibility("hidden")))
29
34
#define COMPILER_RT_WEAK __attribute__((weak))
35
+ #endif
36
+ #define COMPILER_RT_ALIGNAS (x ) __attribute__((aligned(x)))
30
37
#define COMPILER_RT_ALLOCA __builtin_alloca
31
- #define COMPILER_RT_FTRUNCATE (f ,l ) ftruncate(fileno(f),l)
32
38
#define COMPILER_RT_ALWAYS_INLINE inline __attribute((always_inline))
33
39
#define COMPILER_RT_CLEANUP (x ) __attribute__((cleanup(x)))
34
40
#endif
You can’t perform that action at this time.
0 commit comments