diff w32thread.c @ 5542:b0a566346fb1 libavcodec

Add attribute that forces alignment of stack to functions that need it. Necessary for systems that don't align by default to 16 bytes, required by some SSE instructions. Requires GCC >= 4.2. Based on patch by Ga¸«³l Chardon.
author ramiro
date Mon, 13 Aug 2007 15:28:29 +0000
parents 2b72f9bc4f06
children 6815571afbcf
line wrap: on
line diff
--- a/w32thread.c	Mon Aug 13 14:16:20 2007 +0000
+++ b/w32thread.c	Mon Aug 13 15:28:29 2007 +0000
@@ -36,7 +36,7 @@
 }ThreadContext;
 
 
-static unsigned __stdcall thread_func(void *v){
+static unsigned __stdcall attribute_align_arg thread_func(void *v){
     ThreadContext *c= v;
 
     for(;;){