]> git.ipfire.org Git - thirdparty/squid.git/blob - compat/debug.cc
Renamed squid.h to squid-old.h and config.h to squid.h
[thirdparty/squid.git] / compat / debug.cc
1 #include "squid.h"
2 #include "compat/debug.h"
3
4 /* default off */
5 int debug_enabled = 0;
6
7 #ifndef __GNUC__
8 /* under gcc a macro define in compat/debug.h is used instead */
9
10 void
11 debug(const char *format,...)
12 {
13 if (!debug_enabled)
14 return;
15 va_list args;
16 va_start (args,format);
17 vfprintf(stderr,format,args);
18 va_end(args);
19 }
20
21 #endif /* __GNUC__ */