Ticket #2505: scummvm_configure.patch

File scummvm_configure.patch, 829 bytes (added by SF/lblume, 18 years ago)

Ugly hack to avoid int8 conflict on Solaris

  • scummvm/configure

    old new  
    13191319
    13201320echo
    13211321echo "Creating config.h"
     1322
     1323# Ugly hack to avoid int8_t conflict on Solaris
     1324# bug [ 1436178 ] Conflicting declaration of int8_t on Solaris
     1325case  "$_host_os" in
     1326        # For Solaris only
     1327        solaris*)
     1328                SIGNED=""
     1329                ;;
     1330
     1331        # For all others
     1332        *)
     1333                SIGNED="signed"
     1334                ;;
     1335esac
     1336# End ugly hack
     1337
     1338
    13221339cat > config.h << EOF
    13231340/* This file is automatically generated by configure */
    13241341/* DO NOT EDIT MANUALLY */
     
    13381355typedef unsigned $type_1_byte uint8;
    13391356typedef unsigned $type_2_byte uint16;
    13401357typedef unsigned $type_4_byte uint32;
    1341 typedef signed $type_1_byte int8;
     1358typedef $SIGNED $type_1_byte int8;
    13421359typedef signed $type_2_byte int16;
    13431360typedef signed $type_4_byte int32;
    13441361