summaryrefslogtreecommitdiff
path: root/utils/log.h
diff options
context:
space:
mode:
authorVincent Sanders <vince@netsurf-browser.org>2010-10-17 00:08:35 +0000
committerVincent Sanders <vince@netsurf-browser.org>2010-10-17 00:08:35 +0000
commit07c62407e2d251e3906d45684d15dafbc16f29f7 (patch)
tree93039a2119433e5880f8e4a0b0518edf90fbbd06 /utils/log.h
parentc052d534e7d9485c4ce534f4286c56154ad7f247 (diff)
downloadnetsurf-07c62407e2d251e3906d45684d15dafbc16f29f7.tar.gz
netsurf-07c62407e2d251e3906d45684d15dafbc16f29f7.tar.bz2
Fix windows url bar
Clean up toolbar and urlbar creation and subclassing svn path=/trunk/netsurf/; revision=10891
Diffstat (limited to 'utils/log.h')
-rw-r--r--utils/log.h11
1 files changed, 1 insertions, 10 deletions
diff --git a/utils/log.h b/utils/log.h
index cfee359f4..b676c65bf 100644
--- a/utils/log.h
+++ b/utils/log.h
@@ -21,22 +21,13 @@
#define _NETSURF_LOG_H_
#include <stdio.h>
-#include <sys/time.h>
#include "desktop/netsurf.h"
#ifdef NDEBUG
# define LOG(x) ((void) 0)
#else
-static inline const char *nslog_gettime(void)
-{
- static char buff[32];
- static struct timeval tv;
-
- gettimeofday(&tv, NULL);
- snprintf(buff, sizeof(buff),"(%ld.%ld)", tv.tv_sec, tv.tv_usec);
- return buff;
-}
+extern const char *nslog_gettime(void);
# ifdef __GNUC__
# define LOG(x) do { if (verbose_log) (printf("%s " __FILE__ " %s %i: ", nslog_gettime(), __PRETTY_FUNCTION__, __LINE__), printf x, fputc('\n', stdout)); } while (0)