summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/imports.c
diff options
context:
space:
mode:
authorGareth Hughes <[email protected]>2001-03-27 19:18:02 +0000
committerGareth Hughes <[email protected]>2001-03-27 19:18:02 +0000
commit19d1e432612cf7db797da11793b13a6c1c6aac16 (patch)
tree7f8d8af439b33ecb2ed4eb815766a79492930601 /src/mesa/main/imports.c
parenta767bff929b6c6e9e525402c522972aa0b05d065 (diff)
Updates required for DRI drivers on mesa-3-5-branch.
Diffstat (limited to 'src/mesa/main/imports.c')
-rw-r--r--src/mesa/main/imports.c18
1 files changed, 10 insertions, 8 deletions
diff --git a/src/mesa/main/imports.c b/src/mesa/main/imports.c
index 5dcd7fc64fc..60cca8433e2 100644
--- a/src/mesa/main/imports.c
+++ b/src/mesa/main/imports.c
@@ -1,4 +1,4 @@
-/* $Id: imports.c,v 1.8 2001/03/12 00:48:38 gareth Exp $ */
+/* $Id: imports.c,v 1.9 2001/03/27 19:18:02 gareth Exp $ */
/*
* Mesa 3-D graphics library
@@ -69,6 +69,15 @@ _mesa_Free(__GLcontext *gc, void *addr)
FREE(addr);
}
+/* Must be before '#undef getenv' for inclusion in XFree86.
+ */
+static char *
+_mesa_getenv(__GLcontext *gc, const char *var)
+{
+ (void) gc;
+ return getenv(var);
+}
+
static void
_mesa_warning(__GLcontext *gc, char *str)
{
@@ -100,13 +109,6 @@ _mesa_fatal(__GLcontext *gc, char *str)
abort();
}
-static char *
-_mesa_getenv(__GLcontext *gc, const char *var)
-{
- (void) gc;
- return getenv(var);
-}
-
static int
_mesa_atoi(__GLcontext *gc, const char *str)
{