@@ -143,6 +143,11 @@ typedef void * NATIVE_LIBRARY_HANDLE;
143
143
#define LANG_THAI 0x1e
144
144
145
145
/******************* Compiler-specific glue *******************************/
146
+ #if defined(_MSC_VER ) || defined(__llvm__ )
147
+ #define THROW_DECL
148
+ #else
149
+ #define THROW_DECL throw()
150
+ #endif
146
151
147
152
#ifndef _MSC_VER
148
153
#if defined(CORECLR )
@@ -4324,7 +4329,7 @@ PALIMPORT int __cdecl memcmp(const void *, const void *, size_t);
4324
4329
PALIMPORT void * __cdecl memset (void * , int , size_t );
4325
4330
PALIMPORT void * __cdecl memmove (void * , const void * , size_t );
4326
4331
PALIMPORT void * __cdecl memchr (const void * , int , size_t );
4327
- PALIMPORT long long int __cdecl atoll (const char * );
4332
+ PALIMPORT long long int __cdecl atoll (const char * ) THROW_DECL ;
4328
4333
PALIMPORT size_t __cdecl strlen (const char * );
4329
4334
PALIMPORT int __cdecl strcmp (const char * , const char * );
4330
4335
PALIMPORT int __cdecl strncmp (const char * , const char * , size_t );
@@ -4363,7 +4368,7 @@ PALIMPORT int __cdecl toupper(int);
4363
4368
#define _TRUNCATE ((size_t)-1)
4364
4369
#endif
4365
4370
4366
- PALIMPORT errno_t __cdecl memcpy_s (void * , size_t , const void * , size_t );
4371
+ PALIMPORT errno_t __cdecl memcpy_s (void * , size_t , const void * , size_t ) THROW_DECL ;
4367
4372
PALIMPORT errno_t __cdecl memmove_s (void * , size_t , const void * , size_t );
4368
4373
PALIMPORT char * __cdecl _strlwr (char * );
4369
4374
PALIMPORT int __cdecl _stricmp (const char * , const char * );
@@ -4503,10 +4508,10 @@ PALIMPORT double __cdecl acos(double);
4503
4508
PALIMPORT double __cdecl acosh (double );
4504
4509
PALIMPORT double __cdecl asin (double );
4505
4510
PALIMPORT double __cdecl asinh (double );
4506
- PALIMPORT double __cdecl atan (double );
4507
- PALIMPORT double __cdecl atanh (double );
4511
+ PALIMPORT double __cdecl atan (double ) THROW_DECL ;
4512
+ PALIMPORT double __cdecl atanh (double ) THROW_DECL ;
4508
4513
PALIMPORT double __cdecl atan2 (double , double );
4509
- PALIMPORT double __cdecl cbrt (double );
4514
+ PALIMPORT double __cdecl cbrt (double ) THROW_DECL ;
4510
4515
PALIMPORT double __cdecl ceil (double );
4511
4516
PALIMPORT double __cdecl cos (double );
4512
4517
PALIMPORT double __cdecl cosh (double );
@@ -4536,10 +4541,10 @@ PALIMPORT float __cdecl acosf(float);
4536
4541
PALIMPORT float __cdecl acoshf (float );
4537
4542
PALIMPORT float __cdecl asinf (float );
4538
4543
PALIMPORT float __cdecl asinhf (float );
4539
- PALIMPORT float __cdecl atanf (float );
4540
- PALIMPORT float __cdecl atanhf (float );
4544
+ PALIMPORT float __cdecl atanf (float ) THROW_DECL ;
4545
+ PALIMPORT float __cdecl atanhf (float ) THROW_DECL ;
4541
4546
PALIMPORT float __cdecl atan2f (float , float );
4542
- PALIMPORT float __cdecl cbrtf (float );
4547
+ PALIMPORT float __cdecl cbrtf (float ) THROW_DECL ;
4543
4548
PALIMPORT float __cdecl ceilf (float );
4544
4549
PALIMPORT float __cdecl cosf (float );
4545
4550
PALIMPORT float __cdecl coshf (float );
0 commit comments