cogl/cogl-renderer.c: Avoid Clash with Newer Windows SDKs
The DriverCallback is a function that is defined by the Windows SDK 8.0+ headers, which was initially used for device driver development. The use of DriverCallback would cause a clash, causing things to break when built with newer Windows SDKs, so rename DriverCallback to CoglDriverCallback to avoid this problem. Reviewed-by: Neil Roberts <neil@linux.intel.com>
This commit is contained in:
parent
ed06915e61
commit
001cffd783
@ -369,12 +369,12 @@ cogl_renderer_check_onscreen_template (CoglRenderer *renderer,
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
typedef CoglBool (*DriverCallback) (CoglDriverDescription *description,
|
||||
typedef CoglBool (*CoglDriverCallback) (CoglDriverDescription *description,
|
||||
void *user_data);
|
||||
|
||||
static void
|
||||
foreach_driver_description (CoglDriver driver_override,
|
||||
DriverCallback callback,
|
||||
CoglDriverCallback callback,
|
||||
void *user_data)
|
||||
{
|
||||
#ifdef COGL_DEFAULT_DRIVER
|
||||
|
Loading…
Reference in New Issue
Block a user