Changeset 291

Show
Ignore:
Timestamp:
04/12/08 20:19:06 (3 months ago)
Author:
aldacron
Message:

[DerelictUtil?]
* changed the Tango version check in toDString to check for the existence of fromStringz, at the recommendation of Bill Baxter. He pointed out that in the Tango trunk, the version identifier has changed format, breaking the existing check.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/DerelictUtil/derelict/util/wrapper.d

    r282 r291  
    6767    version(Tango) 
    6868    { 
    69         static if(Tango >= 0.995f) 
    70         { 
    71             return fromStringz(cstr); 
    72         } 
    73         else 
    74         { 
    75             return fromUtf8z(cstr); 
    76         } 
     69        static if(is(typeof(&fromStringz))) { return fromStringz(cstr); } 
     70        else { return fromUtf8z(cstr); }  
    7771    } 
    7872    else