Ignore:
Timestamp:
26/02/2010 14:11:33 (2 years ago)
Author:
chris
Message:

Detect whether rl_completion_matches or completion_matches is declared
by readline headers at configure time, and use the appropriate one in
bbackupquery. Thanks to Melissa Jenkins for reporting the compilation
failure on OSX and providing additional details.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • box/trunk/bin/bbackupquery/bbackupquery.cpp

    r2641 r2643  
    133133        if (start == 0) 
    134134        { 
    135                 matches = rl_completion_matches(text, command_generator); 
     135                #ifdef HAVE_RL_COMPLETION_MATCHES 
     136                        matches = rl_completion_matches(text, 
     137                                command_generator); 
     138                #elif defined HAVE_COMPLETION_MATCHES 
     139                        matches = completion_matches(text, command_generator); 
     140                #endif 
    136141        } 
    137142 
Note: See TracChangeset for help on using the changeset viewer.