draw: Put PIPE_CDECL in the right places.
authorJosé Fonseca <jrfonseca@tungstengraphics.com>
Thu, 29 May 2008 09:28:02 +0000 (18:28 +0900)
committerJosé Fonseca <jrfonseca@tungstengraphics.com>
Thu, 29 May 2008 09:28:02 +0000 (18:28 +0900)
MSVC seems picky about this.

src/gallium/auxiliary/draw/draw_vs_aos.h
src/gallium/auxiliary/draw/draw_vs_aos_machine.c
src/gallium/auxiliary/draw/draw_vs_varient.c

index 89a9174151de5fa13356fcf0ba953e9203494881..665b425e6843e663c1c9a7fbcbae2b39fe67ca23 100644 (file)
@@ -60,12 +60,12 @@ struct x86_function;
 #define FPU_RND_NEAREST 2
 
 struct aos_machine;
-typedef void PIPE_CDECL (*lit_func)( struct aos_machine *,
+typedef void (PIPE_CDECL *lit_func)( struct aos_machine *,
                                     float *result,
                                     const float *in,
                                     unsigned count );
 
-PIPE_CDECL void aos_do_lit( struct aos_machine *machine,
+void PIPE_CDECL aos_do_lit( struct aos_machine *machine,
                             float *result,
                             const float *in,
                             unsigned count );
index 53e999b191e92d7a5004315a668752d95bd2c408..b7864e9f2f0b77025b29ec035a89233f69bfbe41 100644 (file)
@@ -57,7 +57,7 @@
 #define X87_CW_INFINITY               (1<<12)
 
 
-PIPE_CDECL void aos_do_lit( struct aos_machine *machine,
+void PIPE_CDECL aos_do_lit( struct aos_machine *machine,
                             float *result,
                             const float *in,
                             unsigned count )
@@ -91,7 +91,7 @@ PIPE_CDECL void aos_do_lit( struct aos_machine *machine,
 }
 
 
-static PIPE_CDECL void do_lit_lut( struct aos_machine *machine,
+static void PIPE_CDECL do_lit_lut( struct aos_machine *machine,
                                    float *result,
                                    const float *in,
                                    unsigned count )
index 18cb06e3742abde70c6614c0a9854b2a33841c90..4a155251b53c02c075a20569f54c75e1c32c3326 100644 (file)
@@ -118,10 +118,10 @@ static void do_viewport( struct draw_vs_varient_generic *vsvg,
 }
                          
 
-static void vsvg_run_elts( struct draw_vs_varient *varient,
-                           const unsigned *elts,
-                           unsigned count,
-                           void *output_buffer)
+static void PIPE_CDECL vsvg_run_elts( struct draw_vs_varient *varient,
+                                      const unsigned *elts,
+                                      unsigned count,
+                                      void *output_buffer)
 {
    struct draw_vs_varient_generic *vsvg = (struct draw_vs_varient_generic *)varient;
                        
@@ -174,10 +174,10 @@ static void vsvg_run_elts( struct draw_vs_varient *varient,
 }
 
 
-static void vsvg_run_linear( struct draw_vs_varient *varient,
-                                   unsigned start,
-                                   unsigned count,
-                                   void *output_buffer )
+static void PIPE_CDECL vsvg_run_linear( struct draw_vs_varient *varient,
+                                        unsigned start,
+                                        unsigned count,
+                                        void *output_buffer )
 {
    struct draw_vs_varient_generic *vsvg = (struct draw_vs_varient_generic *)varient;