source: scripts/untested/blfs-patches/libmpeg3-1.5.4-gcc34-1.patch@ d285e92

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since d285e92 was 617118d, checked in by Jim Gifford <clfs@…>, 19 years ago

r561@server (orig r559): root | 2005-06-05 02:38:49 -0700
Fixed Directory Structure

  • Property mode set to 100644
File size: 2.5 KB
  • video/output.c

    Submitted By: Jeremy Utley (jeremy@linuxfromscratch.org)
    Date: 2004-05-20
    Initial Package Version: 1.5.4
    Upstream Status: Not Submitted
    Origin: Self Created
    Description: Fixes syntax issues with GCC 3.4
    
    $LastChangedBy: randy $
    $Date: 2004-08-22 09:47:08 -0600 (Sun, 22 Aug 2004) $
    
    diff -uNr libmpeg3-1.5.4/video/output.c 
    libmpeg3-1.5.4.jbit/video/output.c
    old new  
    10621062/* Not used */
    10631063        return 0;
    10641064}
     1065
     1066#ifdef HAVE_MMX
     1067/*
     1068        Make sure that these vars get linked
     1069        For some reason gcc3.4 doesn't link them
     1070        There's gotta be a better way to do this, this is just a quick hack
     1071*/
     1072void ___jbit_hack()
     1073{
     1074        void *foo;
     1075        foo = &mpeg3_MMX_0;
     1076        foo = mpeg3_MMX_10w;
     1077        foo = mpeg3_MMX_80w;
     1078        foo = mpeg3_MMX_00FFw;
     1079        foo = mpeg3_MMX_Ublucoeff;
     1080        foo = mpeg3_MMX_Vredcoeff;
     1081        foo = mpeg3_MMX_Ugrncoeff;
     1082        foo = mpeg3_MMX_Vgrncoeff;
     1083        foo = mpeg3_MMX_Ycoeff;
     1084        foo = mpeg3_MMX_redmask;
     1085        foo = mpeg3_MMX_grnmask;
     1086        foo = mpeg3_601_to_rgb;
     1087
     1088        foo = &mpeg3_MMX_U_80;
     1089        foo = &mpeg3_MMX_V_80;
     1090        foo = &mpeg3_MMX_U_COEF;
     1091        foo = &mpeg3_MMX_V_COEF;
     1092        foo = &mpeg3_MMX_601_Y_COEF;
     1093        foo = &mpeg3_MMX_601_Y_DIFF;
     1094
     1095        foo = &mpeg3_MMX_U_80_RGB;
     1096        foo = &mpeg3_MMX_V_80_RGB;
     1097        foo = &mpeg3_MMX_U_COEF_RGB;
     1098        foo = &mpeg3_MMX_V_COEF_RGB;
     1099}
     1100#endif
  • video/reconstruct.c

    diff -uNr libmpeg3-1.5.4/video/reconstruct.c libmpeg3-1.5.4.jbit/video/reconstruct.c
    old new  
    12861286        return 0;
    12871287}
    12881288
    1289 
     1289#ifdef HAVE_MMX
     1290/*
     1291        Make sure that these vars get linked
     1292        For some reason gcc3.4 doesn't link them
     1293        There's gotta be a better way to do this, this is just a quick hack
     1294*/
     1295void ___jbit_hack_reconstruct()
     1296{
     1297        void *foo;
     1298        foo = &MASK_AND;
     1299        foo = &ADD_1;
     1300}
     1301#endif
  • video/slice.c

    diff -uNr libmpeg3-1.5.4/video/slice.c libmpeg3-1.5.4.jbit/video/slice.c
    old new  
    706706        pthread_mutex_destroy(&(slice->output_lock));
    707707        return 0;
    708708}
     709
     710#ifdef HAVE_MMX
     711/*
     712        Make sure that these vars get linked
     713        For some reason gcc3.4 doesn't link them
     714        There's gotta be a better way to do this, this is just a quick hack
     715*/
     716void ___jbit_hack_slice()
     717{
     718        void *foo;
     719        foo = &MMX_128;
     720}
     721#endif
Note: See TracBrowser for help on using the repository browser.