summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/util/u_snprintf.c
diff options
context:
space:
mode:
authorJosé Fonseca <[email protected]>2011-11-09 07:05:52 +0000
committerJosé Fonseca <[email protected]>2011-11-29 17:34:56 +0000
commit10b07665be5cff9fa9f03b0f7db459f3b380570d (patch)
treeebe9bcbf6586abbf27b9b4ae827fc459cedf05e0 /src/gallium/auxiliary/util/u_snprintf.c
parent57f8e26ca87a2846f192682c84eccbf8b4500bfc (diff)
Remove windows kernel support code.
Not actively used. Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/gallium/auxiliary/util/u_snprintf.c')
-rw-r--r--src/gallium/auxiliary/util/u_snprintf.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/gallium/auxiliary/util/u_snprintf.c b/src/gallium/auxiliary/util/u_snprintf.c
index 65bdd0df2b7..f0d53b3cecd 100644
--- a/src/gallium/auxiliary/util/u_snprintf.c
+++ b/src/gallium/auxiliary/util/u_snprintf.c
@@ -1113,11 +1113,7 @@ again:
* Factor of ten with the number of digits needed for the fractional
* part. For example, if the precision is 3, the mask will be 1000.
*/
-#if defined(PIPE_SUBSYSTEM_WINDOWS_MINIPORT)
- mask = (unsigned long)mypow10(precision);
-#else
mask = (UINTMAX_T)mypow10(precision);
-#endif
/*
* We "cheat" by converting the fractional part to integer by
* multiplying by a factor of ten.
@@ -1369,11 +1365,7 @@ cast(LDOUBLE value)
if (value >= UINTMAX_MAX)
return UINTMAX_MAX;
-#if defined(PIPE_SUBSYSTEM_WINDOWS_MINIPORT)
- result = (unsigned long)value;
-#else
result = (UINTMAX_T)value;
-#endif
/*
* At least on NetBSD/sparc64 3.0.2 and 4.99.30, casting long double to
* an integer type converts e.g. 1.9 to 2 instead of 1 (which violates