Exclude the WhereAmI function when compiling with MSVC

This commit is contained in:
Martin Kroeker 2024-10-09 17:21:52 +02:00 committed by GitHub
parent 7ac5b9011f
commit d71c9b8bf5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 2 deletions

View File

@ -1,5 +1,5 @@
/*****************************************************************************
Copyright (c) 2011-2015, The OpenBLAS Project
Copyright (c) 2011-2024, The OpenBLAS Project
All rights reserved.
Redistribution and use in source and binary forms, with or without
@ -54,7 +54,7 @@ USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#ifndef ASSEMBLER
#ifndef C_MSVC
static __inline int WhereAmI(void){
uint64_t ret;
__asm__ volatile (
@ -67,6 +67,7 @@ static __inline int WhereAmI(void){
if ((int)ret <0) ret = 0;
return (int)ret;
}
#endif
static __inline void blas_lock(volatile BLASULONG *address){