diff options
author | Jens Granseuer <jensgr@gmx.net> | 2006-06-07 01:46:00 -0700 |
---|---|---|
committer | Alan Coopersmith <alanc@alf.(none)> | 2006-06-30 15:56:40 -0700 |
commit | 179737d4a07ed10a734fe017b5680f8e78ffda96 (patch) | |
tree | b4520f0ecc3b14fd91b457ee6d20c357f267223c /exa | |
parent | 6bd4c254396cb0f4e8ae21ff455ebb15cd9f4f10 (diff) |
Bug 7145: fix build with gcc 2.95 & other c89 compilers
Move variable declarations to start of blocks as required by c89
Diffstat (limited to 'exa')
-rw-r--r-- | exa/exa.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -523,6 +523,9 @@ exaDriverInit (ScreenPtr pScreen, ExaDriverPtr pScreenInfo) { ExaScreenPrivPtr pExaScr; +#ifdef RENDER + PictureScreenPtr ps; +#endif if (pScreenInfo->exa_major != EXA_VERSION_MAJOR || pScreenInfo->exa_minor > EXA_VERSION_MINOR) @@ -536,7 +539,7 @@ exaDriverInit (ScreenPtr pScreen, } #ifdef RENDER - PictureScreenPtr ps = GetPictureScreenIfSet(pScreen); + ps = GetPictureScreenIfSet(pScreen); #endif if (exaGeneration != serverGeneration) { |