]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
Update compiler.h
authorNiadb <34917535+Niadb@users.noreply.github.com>
Fri, 19 Jun 2020 15:48:35 +0000 (09:48 -0600)
committerGitHub <noreply@github.com>
Fri, 19 Jun 2020 15:48:35 +0000 (09:48 -0600)
Added a comment explaining the purpose of the WIN_CDECL macro

lib/common/compiler.h

index 781ee43517b093379294eafe87c1071a30784355..91bd85e432e51fcd2716e51093cca6b831b096fc 100644 (file)
 
 #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