b654366a009176d5cc97bf8867f8a31b080af20f larrym Mon Jul 19 15:42:46 2010 -0700 move TRACK_SEARCH #define to inc/searchTracks.h diff --git src/hg/lib/searchTracks.c src/hg/lib/searchTracks.c index cff0139..45f4461 100644 --- src/hg/lib/searchTracks.c +++ src/hg/lib/searchTracks.c @@ -1,19 +1,23 @@ // Track Search code which is shared between different CGIs #include "searchTracks.h" #include "hdb.h" #include "trix.h" void getSearchTrixFile(char *database, char *buf, int len) // Fill-in the name of the track search trix file { safef(buf, len, "/gbdb/%s/trackDb.ix", database); } boolean isSearchTracksSupported(char *database) // Return TRUE if searchTracks is supported for this database { +#ifdef TRACK_SEARCH char trixFile[HDB_MAX_PATH_STRING]; getSearchTrixFile(database, trixFile, sizeof(trixFile)); return fileExists(trixFile); +#else +return FALSE; +#endif }