Update compiler.h

Added a comment explaining the purpose of the WIN_CDECL macro
dev
Niadb 2020-06-19 09:48:35 -06:00 committed by GitHub
parent 2962fda93f
commit 8c115cbe23
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -38,6 +38,11 @@
#endif
/**
On MSVC qsort requires functions passed to it use the __cdecl calling conversion(CC).
This explictly marks such functions as __cdecl so that the code will still compile
if a CC other than __cdecl has been made the default.
*/
#if defined(_MSC_VER)
# define WIN_CDECL __cdecl
#else