summaryrefslogtreecommitdiffstats
path: root/src/doxysearch.cpp
diff options
context:
space:
mode:
authordimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2001-11-25 18:56:18 (GMT)
committerdimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2001-11-25 18:56:18 (GMT)
commitcce8b9505201c95443798341d3d6176922db9253 (patch)
tree6643370adedf0cbaac88d674978bd44175ab1475 /src/doxysearch.cpp
parentc736b03f16a88b6654ff9c1ae680e46b86e50218 (diff)
downloadDoxygen-cce8b9505201c95443798341d3d6176922db9253.zip
Doxygen-cce8b9505201c95443798341d3d6176922db9253.tar.gz
Doxygen-cce8b9505201c95443798341d3d6176922db9253.tar.bz2
Release-1.2.12-20011125
Diffstat (limited to 'src/doxysearch.cpp')
-rw-r--r--src/doxysearch.cpp13
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);