mirror of
https://github.com/brl/mutter.git
synced 2024-11-25 17:40:40 -05:00
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;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
typedef CoglBool (*DriverCallback) (CoglDriverDescription *description,
|
typedef CoglBool (*CoglDriverCallback) (CoglDriverDescription *description,
|
||||||
void *user_data);
|
void *user_data);
|
||||||
|
|
||||||
static void
|
static void
|
||||||
foreach_driver_description (CoglDriver driver_override,
|
foreach_driver_description (CoglDriver driver_override,
|
||||||
DriverCallback callback,
|
CoglDriverCallback callback,
|
||||||
void *user_data)
|
void *user_data)
|
||||||
{
|
{
|
||||||
#ifdef COGL_DEFAULT_DRIVER
|
#ifdef COGL_DEFAULT_DRIVER
|
||||||
|
Loading…
Reference in New Issue
Block a user