Don't include stdint.h or inttypes. Use the uint64 typedef instead of uint64_t.
authorBrian <brian.paul@tungstengraphics.com>
Wed, 16 Jan 2008 01:27:14 +0000 (18:27 -0700)
committerBrian <brian.paul@tungstengraphics.com>
Wed, 16 Jan 2008 01:27:14 +0000 (18:27 -0700)
src/mesa/pipe/p_context.h
src/mesa/pipe/p_util.h
src/mesa/pipe/softpipe/sp_context.h
src/mesa/pipe/softpipe/sp_query.c

index 25b5dc35e43281c19a557cd64d1705918c0e0bc8..7a18d48865730411c021151b843488ac6ff9a460 100644 (file)
@@ -29,7 +29,7 @@
 #define PIPE_CONTEXT_H
 
 #include "p_state.h"
-#include <stdint.h>
+
 
 struct pipe_state_cache;
 
@@ -97,7 +97,7 @@ struct pipe_context {
    boolean (*get_query_result)(struct pipe_context *pipe, 
                                struct pipe_query *q,
                                boolean wait,
-                               uint64_t *result);
+                               uint64 *result);
 
    /*
     * State functions
index 46edcf307530493c4364f5e3c05555a0d9467c5b..1bf606bf4b45d7e817bacf9a5951699cf63d8c32 100644 (file)
@@ -30,7 +30,6 @@
 
 #include "p_compiler.h"
 #include <math.h>
-#include <stdint.h>
 
 
 #ifdef WIN32
index 394baf0109730c94ae604bf5a6eadfea521b36a6..3537f86a61e1591e298542fded614663cbfdab40 100644 (file)
@@ -76,7 +76,7 @@ struct softpipe_context {
    /* Counter for occlusion queries.  Note this supports overlapping
     * queries.
     */
-   uint64_t occlusion_count;
+   uint64 occlusion_count;
 
    /*
     * Mapped vertex buffers
index bf753dad98ffc513f0263b5d285597ee8aa4d907..6a8a43aedafcfce4eb3faf6d92f84bf3f806e233 100644 (file)
@@ -37,8 +37,8 @@
 #include "sp_query.h"
 
 struct softpipe_query {
-   uint64_t start;
-   uint64_t end;
+   uint64 start;
+   uint64 end;
 };
 
 
@@ -87,7 +87,7 @@ static boolean
 softpipe_get_query_result(struct pipe_context *pipe, 
                          struct pipe_query *q,
                          boolean wait,
-                         uint64_t *result )
+                         uint64 *result )
 {
    struct softpipe_query *sq = softpipe_query(q);
    *result = sq->end - sq->start;