Changeset 1793


Ignore:
Timestamp:
2000-12-15T10:01:47+13:00 (23 years ago)
Author:
sjboddie
Message:

Fixed the gsdl_ok() function as it didn't work on linux. I'm still not
completely convinced that it's foolproof. Time will tell.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/lib/gsdltools.cpp

    r1784 r1793  
    170170// attempts to work out if perl is functional
    171171bool perl_ok () {
     172#if defined(__WIN32__)
    172173  int i = gsdl_call_perl ("-e", "exit 1", NULL);
    173174  return (i == 1);
     175#else
     176  int i = gsdl_call_perl ("-e", "'exit 0'", NULL); 
     177  return (i == 0);
     178#endif
    174179}
Note: See TracChangeset for help on using the changeset viewer.