dri: Fix i965 build
authorChad Versace <chad.versace@linux.intel.com>
Sun, 2 Dec 2012 01:03:59 +0000 (17:03 -0800)
committerChad Versace <chad.versace@linux.intel.com>
Sun, 2 Dec 2012 01:08:41 +0000 (17:08 -0800)
commite5f1f8d52e6bfdf087f930425eb5092f52a29940
treea2c2be1d8811a0ab26a3337e0b8e39c1d45f8e9a
parent3039addf9363dbae1bbad1cd75d32e0013038c08
dri: Fix i965 build

The following commit broke the i965 build:

    commit 4a486f8bf2ca3d88228f8313282289abe78bc2f8
    Author: Marek Olšák <maraeo@gmail.com>
    Date:   Fri Nov 23 18:31:42 2012 +0100

    glx/dri2: add and use new driver hook flush_with_flags

That commit added a forward declaration of enum __DRI2throttleReason to
dri_interface.h. C++ 98 does not allow forward declarations of enums.

The fix: Move the enum's definition to earlier in the file.

Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
include/GL/internal/dri_interface.h