X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=src%2Fglu%2Fsgi%2Flibutil%2Fmipmap.c;h=71e76afb8720ebe7652830e70b6910ddf84bd91a;hb=d34ddad9a5260937e3ad5fc0b945f3195d7e032e;hp=d1fd5a7d724c2d095399af677846e1c47051025f;hpb=808f0376607b0e2d31dfebc888fd8f1e737fed09;p=mesa.git diff --git a/src/glu/sgi/libutil/mipmap.c b/src/glu/sgi/libutil/mipmap.c index d1fd5a7d724..71e76afb872 100644 --- a/src/glu/sgi/libutil/mipmap.c +++ b/src/glu/sgi/libutil/mipmap.c @@ -36,7 +36,6 @@ #include #include /* UINT_MAX */ #include -#include "gluint.h" typedef union { unsigned char ub[4]; @@ -5553,7 +5552,7 @@ static void shove233rev(const GLfloat shoveComponents[], static void extract565(int isSwap, const void *packedPixel, GLfloat extractComponents[]) { - GLushort ushort= *(const GLushort *)packedPixel; + GLushort ushort; if (isSwap) { ushort= __GLU_SWAP_2_BYTES(packedPixel); @@ -5594,7 +5593,7 @@ static void shove565(const GLfloat shoveComponents[], static void extract565rev(int isSwap, const void *packedPixel, GLfloat extractComponents[]) { - GLushort ushort= *(const GLushort *)packedPixel; + GLushort ushort; if (isSwap) { ushort= __GLU_SWAP_2_BYTES(packedPixel); @@ -6632,7 +6631,7 @@ static TexImage3Dproc pTexImage3D = 0; # include # include #else - WINGDIAPI PROC WINAPI wglGetProcAddress(LPCSTR); +# include #endif static void gluTexImage3D( GLenum target, GLint level,