Changeset 4652:bca0fa4eabf1 in roaraudio for roard/req.c


Ignore:
Timestamp:
12/09/10 18:07:09 (13 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

added support for distri version string part

File:
1 edited

Legend:

Unmodified
Added
Removed
  • roard/req.c

    r4621 r4652  
    595595   memset(&info, 0, sizeof(info)); 
    596596 
    597    info.version = "roard/" PACKAGE_VERSION " <" DEVICE_VENDOR_STRING ">"; 
     597   // the following if is optimized out by compiler. 
     598   if ( DISTRIBUTION_VERSION_STRING[0] == 0 ) { 
     599    info.version = "roard/" PACKAGE_VERSION " <" DEVICE_VENDOR_STRING ">"; 
     600   } else { 
     601    info.version = "roard/" PACKAGE_VERSION " <" DEVICE_VENDOR_STRING "> (" DISTRIBUTION_VERSION_STRING ")"; 
     602   } 
    598603 
    599604   if ( !!strcmp(g_config->location, CONF_DEF_STRING) ) 
Note: See TracChangeset for help on using the changeset viewer.