mesa: fix out of bounds access in glGetFramebufferParameterivEXT
[mesa.git] / src / mesa / x86 / common_x86.c
index 5cf919fd59a61329716c939b4ef9e092e0cb7e83..a237fc0c9973a74723e15852ff53377bc5af4fab 100644 (file)
 #endif
 #endif
 
-#include "main/imports.h"
+#include <stdlib.h>
+
+#include "main/errors.h"
+
 #include "common_x86_asm.h"
 
 
@@ -157,10 +160,10 @@ void _mesa_check_os_sse_support( void )
    }
 #elif defined(_WIN32)
    LPTOP_LEVEL_EXCEPTION_FILTER oldFilter;
-   
+
    /* Install our ExceptionFilter */
    oldFilter = SetUnhandledExceptionFilter( ExceptionFilter );
-   
+
    if ( cpu_has_xmm ) {
       _mesa_debug(NULL, "Testing OS support for SSE...\n");