Update compiler.h

Added a comment explaining the purpose of the WIN_CDECL macro
This commit is contained in:
Niadb
2020-06-19 09:48:35 -06:00
committed by GitHub
parent 2962fda93f
commit 8c115cbe23
+5
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