summaryrefslogtreecommitdiff
path: root/src/inc
diff options
context:
space:
mode:
authorSinan Kaya <41809318+franksinankaya@users.noreply.github.com>2019-02-07 04:28:29 -0500
committerJan Vorlicek <janvorli@microsoft.com>2019-02-07 10:28:29 +0100
commit328f79f1d9c17dd1ac00901631cd90a41e788022 (patch)
treeba2a543c43c40d87c98945432d2cf026b575e5b5 /src/inc
parent8152fc3c8d42fd9e8b80872bef63a29baa64229e (diff)
downloadcoreclr-328f79f1d9c17dd1ac00901631cd90a41e788022.tar.gz
coreclr-328f79f1d9c17dd1ac00901631cd90a41e788022.tar.bz2
coreclr-328f79f1d9c17dd1ac00901631cd90a41e788022.zip
Cleanup LLVM assumption (#22456)
We want to support GNU compilation for CoreCLR. Luckily both LLVM and GNU compilers define __GNUC__ and there are a lot of things they can share.
Diffstat (limited to 'src/inc')
-rw-r--r--src/inc/corhlprpriv.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/inc/corhlprpriv.h b/src/inc/corhlprpriv.h
index 73b89951dd..5eeec2098f 100644
--- a/src/inc/corhlprpriv.h
+++ b/src/inc/corhlprpriv.h
@@ -183,11 +183,11 @@ public:
_Alloc<TRUE /*bGrow*/, TRUE /*bThrow*/>(iItems);
}
-#ifdef __llvm__
+#ifdef __GNUC__
// This makes sure that we will not get an undefined symbol
- // when building a release version of libcoreclr using LLVM.
+ // when building a release version of libcoreclr using LLVM/GCC.
__attribute__((used))
-#endif // __llvm__
+#endif // __GNUC__
HRESULT ReSizeNoThrow(SIZE_T iItems);
void Shrink(SIZE_T iItems)