src/newgrf_config.cpp
changeset 7648 c3f25e9f71e4
parent 7644 a7ff5c8ae47e
child 7649 c4e93cf27732
equal deleted inserted replaced
7647:6a1162b442ce 7648:c3f25e9f71e4
   375  * Simple sorter for GRFS
   375  * Simple sorter for GRFS
   376  * @param p1 the first GRFConfig *
   376  * @param p1 the first GRFConfig *
   377  * @param p2 the second GRFConfig *
   377  * @param p2 the second GRFConfig *
   378  * @return the same strcmp would return for the name of the NewGRF.
   378  * @return the same strcmp would return for the name of the NewGRF.
   379  */
   379  */
   380 static int GRFSorter(const void *p1, const void *p2)
   380 static int CDECL GRFSorter(const void *p1, const void *p2)
   381 {
   381 {
   382 	const GRFConfig *c1 = *(const GRFConfig **)p1;
   382 	const GRFConfig *c1 = *(const GRFConfig **)p1;
   383 	const GRFConfig *c2 = *(const GRFConfig **)p2;
   383 	const GRFConfig *c2 = *(const GRFConfig **)p2;
   384 
   384 
   385 	return strcmp(c1->name != NULL ? c1->name : c1->filename,
   385 	return strcmp(c1->name != NULL ? c1->name : c1->filename,