diff --git a/lib/common/compiler.h b/lib/common/compiler.h index 781ee4351..91bd85e43 100644 --- a/lib/common/compiler.h +++ b/lib/common/compiler.h @@ -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