forked from len0rd/rockbox
lcd_blit_yuv(): don't use weak attribute when building for windows
current gcc/binutils don't support weak attribute correctly see http://sourceware.org/bugzilla/show_bug.cgi?id=9687 fix FS#12427 git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31193 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
11b661e45c
commit
07cfc30e50
1 changed files with 14 additions and 5 deletions
|
|
@ -978,15 +978,24 @@ static inline int clamp(int val, int min, int max)
|
||||||
return val;
|
return val;
|
||||||
}
|
}
|
||||||
|
|
||||||
__attribute__((weak)) void lcd_yuv_set_options(unsigned options)
|
#ifndef _WIN32
|
||||||
|
/*
|
||||||
|
* weak attribute doesn't work for win32 as of gcc 4.6.2 and binutils 2.21.52
|
||||||
|
* When building win32 simulators, we won't be using an optimized version of
|
||||||
|
* lcd_blit_yuv(), so just don't use the weak attribute.
|
||||||
|
*/
|
||||||
|
__attribute__((weak))
|
||||||
|
#endif
|
||||||
|
void lcd_yuv_set_options(unsigned options)
|
||||||
{
|
{
|
||||||
(void)options;
|
(void)options;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Draw a partial YUV colour bitmap - similiar behavior to lcd_blit_yuv
|
/* Draw a partial YUV colour bitmap */
|
||||||
in the core */
|
#ifndef _WIN32
|
||||||
|
__attribute__((weak))
|
||||||
__attribute__((weak)) void lcd_blit_yuv(unsigned char * const src[3],
|
#endif
|
||||||
|
void lcd_blit_yuv(unsigned char * const src[3],
|
||||||
int src_x, int src_y, int stride,
|
int src_x, int src_y, int stride,
|
||||||
int x, int y, int width, int height)
|
int x, int y, int width, int height)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue