1
mirror of https://github.com/mpv-player/mpv synced 2025-01-13 00:06:25 +01:00

Replace typeof by __typeof__, the former is a non-portable GNU extension.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27807 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
diego 2008-10-20 09:55:38 +00:00
parent 33c347f66e
commit 6f6bf7f765

View File

@ -398,7 +398,7 @@ read_next:
// See also gcc problem report PR c/7847:
// http://gcc.gnu.org/cgi-bin/gnatsweb.pl?database=gcc&cmd=view+audit-trail&pr=7847
for(i=0;i<9;i++) { // check if all values zero:
typeof(d->dsi_pack.sml_agli.data[i].address) tmp_addr;
__typeof__(d->dsi_pack.sml_agli.data[i].address) tmp_addr;
memcpy(&tmp_addr,&d->dsi_pack.sml_agli.data[i].address,sizeof(tmp_addr));
if((skip=tmp_addr)!=0) break;
}