summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/imports.c
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2005-09-16 18:14:24 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2005-09-16 18:14:24 +0000
commitaa2069586d434dd0487b0daa2b583efe801a0d51 (patch)
treecac0a05d5ebc786ae80d18080b1ad2896cac8cc6 /src/mesa/main/imports.c
parent3cc67cb8cd1302c20218dda70599523102a29e10 (diff)
use mesa import wrappers, bug 4468
Diffstat (limited to 'src/mesa/main/imports.c')
-rw-r--r--src/mesa/main/imports.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/mesa/main/imports.c b/src/mesa/main/imports.c
index fec0d338448..8d39f77b410 100644
--- a/src/mesa/main/imports.c
+++ b/src/mesa/main/imports.c
@@ -259,6 +259,19 @@ _mesa_bzero( void *dst, size_t n )
#endif
}
+/** Wrapper around either memcmp() or xf86memcmp() */
+int
+_mesa_memcmp( const void *s1, const void *s2, size_t n )
+{
+#if defined(XFree86LOADER) && defined(IN_MODULE)
+ return xf86memcmp( s1, s2, n );
+#elif defined(SUNOS4)
+ return memcmp( (char *) s1, (char *) s2, (int) n );
+#else
+ return memcmp(s1, s2, n);
+#endif
+}
+
/*@}*/