File tree Expand file tree Collapse file tree 4 files changed +6
-4
lines changed Expand file tree Collapse file tree 4 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 7373#        else 
7474#            define  _Py_ALIGNED_DEF (N, T ) alignas (N) alignas (T) T
7575#        endif 
76+ #    elif  defined(_MSC_VER)
77+ #        define  _Py_ALIGNED_DEF (N, T ) __declspec(align(N)) T
7678#    elif  defined(__STDC_VERSION__) && __STDC_VERSION__ >= 202311L
7779#        define  _Py_ALIGNED_DEF (N, T ) alignas (N) alignas (T) T
7880#    elif  defined(__STDC_VERSION__) && __STDC_VERSION__ >= 201112L
7981#        define  _Py_ALIGNED_DEF (N, T )  _Alignas (N) _Alignas (T) T
8082#    elif  (defined(__GNUC__) || defined(__clang__))
8183#        define  _Py_ALIGNED_DEF (N, T ) __attribute__((aligned(N))) T
82- #    elif  defined(_MSC_VER)
83- #        define  _Py_ALIGNED_DEF (N, T ) __declspec(align(N)) T
8484#    else 
8585#        define  _Py_ALIGNED_DEF (N, T ) _Alignas (N) _Alignas (T) T
8686#    endif 
Original file line number Diff line number Diff line change 4949//  Static inline functions should use _Py_NULL rather than using directly NULL
5050//  to prevent C++ compiler warnings. On C23 and newer and on C++11 and newer,
5151//  _Py_NULL is defined as nullptr.
52- #if  (defined (__STDC_VERSION__) && __STDC_VERSION__ > 201710L) \
52+ #if  (defined(__GNUC__) || defined(__clang__)) && \
53+     (defined  (__STDC_VERSION__) && __STDC_VERSION__ > 201710L ) \
5354        || (defined (__cplusplus) && __cplusplus >= 201103 )
5455#  define  _Py_NULL  nullptr 
5556#else 
Original file line number Diff line number Diff line change 1+ Fix building with MSVC when passing option ``/std:clatest ``.
Original file line number Diff line number Diff line change @@ -3148,7 +3148,7 @@ static PyObject *
31483148math_issubnormal_impl (PyObject  * module , double  x )
31493149/*[clinic end generated code: output=4e76ac98ddcae761 input=9a20aba7107d0d95]*/ 
31503150{
3151- #if  defined(__STDC_VERSION__ ) &&  __STDC_VERSION__  >= 202311L 
3151+ #if  !defined( _MSC_VER )  &&   defined(__STDC_VERSION__ ) &&  __STDC_VERSION__  >= 202311L 
31523152    return  PyBool_FromLong (issubnormal (x ));
31533153#else 
31543154    return  PyBool_FromLong (isfinite (x ) &&  x  &&  !isnormal (x ));
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments