summaryrefslogtreecommitdiff
path: root/exa
diff options
context:
space:
mode:
authorJens Granseuer <jensgr@gmx.net>2006-06-07 01:46:00 -0700
committerAlan Coopersmith <alanc@alf.(none)>2006-06-30 15:56:40 -0700
commit179737d4a07ed10a734fe017b5680f8e78ffda96 (patch)
treeb4520f0ecc3b14fd91b457ee6d20c357f267223c /exa
parent6bd4c254396cb0f4e8ae21ff455ebb15cd9f4f10 (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.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/exa/exa.c b/exa/exa.c
index aa5532a98..1022b2ec3 100644
--- a/exa/exa.c
+++ b/exa/exa.c
@@ -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)
{