d3dx9: Make qsort() callback functions cdecl.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
3feed5a23f
commit
08b569d505
|
@ -1207,7 +1207,7 @@ struct vertex_metadata {
|
|||
DWORD first_shared_index;
|
||||
};
|
||||
|
||||
static int compare_vertex_keys(const void *a, const void *b)
|
||||
static int __cdecl compare_vertex_keys(const void *a, const void *b)
|
||||
{
|
||||
const struct vertex_metadata *left = a;
|
||||
const struct vertex_metadata *right = b;
|
||||
|
@ -1585,7 +1585,7 @@ static void fill_attribute_table(DWORD *attrib_buffer, DWORD numfaces, void *ind
|
|||
attrib_table_size++;
|
||||
}
|
||||
|
||||
static int attrib_entry_compare(const void *a, const void *b)
|
||||
static int __cdecl attrib_entry_compare(const void *a, const void *b)
|
||||
{
|
||||
const DWORD *ptr_a = *(const DWORD **)a;
|
||||
const DWORD *ptr_b = *(const DWORD **)b;
|
||||
|
@ -5840,7 +5840,7 @@ static D3DXVECTOR2 *triangulation_get_next_point(struct triangulation *t, struct
|
|||
return &outline->items[i].pos;
|
||||
}
|
||||
|
||||
static int compare_vertex_indices(const void *a, const void *b)
|
||||
static int __cdecl compare_vertex_indices(const void *a, const void *b)
|
||||
{
|
||||
const struct point2d_index *idx1 = a, *idx2 = b;
|
||||
const D3DXVECTOR2 *p1 = &idx1->outline->items[idx1->vertex].pos;
|
||||
|
|
|
@ -640,7 +640,7 @@ static void append_pres_const_sets_for_shader_input(struct d3dx_const_tab *const
|
|||
}
|
||||
}
|
||||
|
||||
static int compare_const_set(const void *a, const void *b)
|
||||
static int __cdecl compare_const_set(const void *a, const void *b)
|
||||
{
|
||||
const struct d3dx_const_param_eval_output *r1 = a;
|
||||
const struct d3dx_const_param_eval_output *r2 = b;
|
||||
|
|
Loading…
Reference in New Issue