Speedups: ignore warning C4551 for pyximport+MSVC (#2054)
The cython-generated code triggers C4551 on MSVC, which does not get silenced by pyximport's build flags. So we silence it on source code level instead.
This commit is contained in:
		
							parent
							
								
									6d93a6234e
								
							
						
					
					
						commit
						29d67ac456
					
				|  | @ -16,6 +16,14 @@ from libc.stdint cimport int64_t, uint32_t | ||||||
| from libcpp.set cimport set as std_set | from libcpp.set cimport set as std_set | ||||||
| from collections import defaultdict | from collections import defaultdict | ||||||
| 
 | 
 | ||||||
|  | cdef extern from *: | ||||||
|  |     """ | ||||||
|  |     // avoid warning from cython-generated code with MSVC + pyximport | ||||||
|  |     #ifdef _MSC_VER | ||||||
|  |     #pragma warning( disable: 4551 ) | ||||||
|  |     #endif | ||||||
|  |     """ | ||||||
|  | 
 | ||||||
| ctypedef uint32_t ap_player_t  # on AMD64 this is faster (and smaller) than 64bit ints | ctypedef uint32_t ap_player_t  # on AMD64 this is faster (and smaller) than 64bit ints | ||||||
| ctypedef uint32_t ap_flags_t | ctypedef uint32_t ap_flags_t | ||||||
| ctypedef int64_t ap_id_t | ctypedef int64_t ap_id_t | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue