1
0
Fork 0

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:
Chun-wei Fan 2014-03-06 20:13:07 +08:00 committed by Neil Roberts
parent ed06915e61
commit 001cffd783

View file

@ -369,12 +369,12 @@ cogl_renderer_check_onscreen_template (CoglRenderer *renderer,
return TRUE;
}
typedef CoglBool (*DriverCallback) (CoglDriverDescription *description,
void *user_data);
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