mesa: Change "BRIAN PAUL" to "THE AUTHORS" in license text.
[mesa.git] / src / mesa / math / m_translate.h
index c677682d5060d616f8777b384d68190284fc2339..966279342da8ff8cf4c27be00ed7d98878c7360e 100644 (file)
@@ -17,7 +17,7 @@
  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
  * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
- * BRIAN PAUL BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
+ * THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
  * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
  * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  */
 #ifndef _M_TRANSLATE_H_
 #define _M_TRANSLATE_H_
 
-#include "main/config.h"
+#include "main/compiler.h"
+#include "main/glheader.h"
 #include "main/mtypes.h"               /* hack for GLchan */
-
+#include "swrast/s_chan.h"
 
 /**
  * Array translation.
 
 
 extern void _math_trans_1f(GLfloat *to,
-                          CONST void *ptr,
+                          const void *ptr,
                           GLuint stride,
                           GLenum type,
                           GLuint start,
                           GLuint n );
 
 extern void _math_trans_1ui(GLuint *to,
-                           CONST void *ptr,
+                           const void *ptr,
                            GLuint stride,
                            GLenum type,
                            GLuint start,
                            GLuint n );
 
 extern void _math_trans_1ub(GLubyte *to,
-                           CONST void *ptr,
+                           const void *ptr,
                            GLuint stride,
                            GLenum type,
                            GLuint start,
                            GLuint n );
 
 extern void _math_trans_4ub(GLubyte (*to)[4],
-                           CONST void *ptr,
+                           const void *ptr,
                            GLuint stride,
                            GLenum type,
                            GLuint size,
@@ -76,7 +77,7 @@ extern void _math_trans_4ub(GLubyte (*to)[4],
                            GLuint n );
 
 extern void _math_trans_4chan( GLchan (*to)[4],
-                              CONST void *ptr,
+                              const void *ptr,
                               GLuint stride,
                               GLenum type,
                               GLuint size,
@@ -84,7 +85,7 @@ extern void _math_trans_4chan( GLchan (*to)[4],
                               GLuint n );
 
 extern void _math_trans_4us(GLushort (*to)[4],
-                           CONST void *ptr,
+                           const void *ptr,
                            GLuint stride,
                            GLenum type,
                            GLuint size,
@@ -93,7 +94,7 @@ extern void _math_trans_4us(GLushort (*to)[4],
 
 /** Convert to floats w/out normalization (i.e. just cast) */
 extern void _math_trans_4f(GLfloat (*to)[4],
-                          CONST void *ptr,
+                          const void *ptr,
                           GLuint stride,
                           GLenum type,
                           GLuint size,
@@ -102,7 +103,7 @@ extern void _math_trans_4f(GLfloat (*to)[4],
 
 /** Convert to normalized floats in [0,1] or [-1, 1] */
 extern void _math_trans_4fn(GLfloat (*to)[4],
-                           CONST void *ptr,
+                           const void *ptr,
                            GLuint stride,
                            GLenum type,
                            GLuint size,
@@ -110,7 +111,7 @@ extern void _math_trans_4fn(GLfloat (*to)[4],
                            GLuint n );
 
 extern void _math_trans_3fn(GLfloat (*to)[3],
-                          CONST void *ptr,
+                          const void *ptr,
                           GLuint stride,
                           GLenum type,
                           GLuint start,