diff options
author | Dimitri van Heesch <dimitri@stack.nl> | 2001-11-25 18:56:18 (GMT) |
---|---|---|
committer | Dimitri van Heesch <dimitri@stack.nl> | 2001-11-25 18:56:18 (GMT) |
commit | 79959c79850830e90aa7e00e72d3718785e29214 (patch) | |
tree | 6643370adedf0cbaac88d674978bd44175ab1475 /src/doxysearch.cpp | |
parent | b89fdced7a88c9222faa0d646923bd09fb1765f8 (diff) | |
download | Doxygen-79959c79850830e90aa7e00e72d3718785e29214.zip Doxygen-79959c79850830e90aa7e00e72d3718785e29214.tar.gz Doxygen-79959c79850830e90aa7e00e72d3718785e29214.tar.bz2 |
Release-1.2.12-20011125
Diffstat (limited to 'src/doxysearch.cpp')
-rw-r--r-- | src/doxysearch.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/doxysearch.cpp b/src/doxysearch.cpp index 3b5b227..90ac247 100644 --- a/src/doxysearch.cpp +++ b/src/doxysearch.cpp @@ -17,6 +17,11 @@ // includes +#ifdef _WIN32 +#include <windows.h> // for AllocConsole +#endif + + #include <stdio.h> #include <string.h> #include <stdarg.h> @@ -805,7 +810,11 @@ void getConfig(const char *s) int l; char configFile[MAXSTRLEN]; strcpy(configFile,s); +#if defined(_WIN32) + strcat(configFile,"\\search.cfg"); +#else strcat(configFile,"/search.cfg"); +#endif FILE *f; if ((f=fopen(configFile,"r"))==NULL) @@ -860,6 +869,10 @@ void strlowercpy(char *d,const char *s) int main(int argc,char **argv) { +#ifdef _WIN32 + AllocConsole(); +#endif + #ifdef PROFILING struct timeval tv_start,tv_end; gettimeofday(&tv_start,0); |